RE: references and dereferencing

2002-06-06 Thread Bryan R Harris
Thanks, Jeff. Now I understand why I thought the Perl compiler was excessively chatty. =) - B __ On Jun 6, Bryan R Harris said: >1. What is a sigil? Consult your nearest dictionary. Sigil == symbol. >2. I like to make little reference pages for myself, do these terms lo

RE: references and dereferencing

2002-06-06 Thread Timothy Johnson
Ok. Tim would have got it, but the Tim interpreter, tim, still has some bugs to work out. -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 12:56 PM To: Timothy Johnson Cc: Bryan R Harris; [EMAIL PROTECTED] Subject: RE: refe

RE: references and dereferencing

2002-06-06 Thread Jeff 'japhy' Pinyan
On Jun 6, Timothy Johnson said: >"If $x = \\"bar", >then $$x returns a reference (to "bar") which is a scalar, but certainly >NOT a string." > >How is "bar" not a string? You've misparsed my use of parentheses here. If $x = \\"bar", then $$x returns a reference which is a scalar, but cert

RE: references and dereferencing

2002-06-06 Thread Timothy Johnson
' Pinyan [mailto:[EMAIL PROTECTED]] Sent: Thursday, June 06, 2002 12:45 PM To: Bryan R Harris Cc: [EMAIL PROTECTED] Subject: RE: references and dereferencing On Jun 6, Bryan R Harris said: >1. What is a sigil? Consult your nearest dictionary. Sigil == symbol. >2. I like to make

RE: references and dereferencing

2002-06-06 Thread Jeff 'japhy' Pinyan
On Jun 6, Bryan R Harris said: >1. What is a sigil? Consult your nearest dictionary. Sigil == symbol. >2. I like to make little reference pages for myself, do these terms look >right? I'd suggest scouring perlreftut and perlref. ># GETTING POINTERS Stop using the word "pointer" right now.

RE: references and dereferencing

2002-06-06 Thread Bryan R Harris
I'm starting to get this... A couple more questions: 1. What is a sigil? 2. I like to make little reference pages for myself, do these terms look right? # pointers are scalars # GETTING POINTERS \$mystring; # returns a pointer to mystring \@myarray;# returns a pointer to myar

RE: references and dereferencing

2002-06-06 Thread Jeff 'japhy' Pinyan
On Jun 6, Nikola Janceski said: >is there a difference between: > >@{ $HASH{$key} } = @array; >$HASH{$key} = \@array; Yes. The first overwrites everything currently contained in the array reference $HASH{$key}; the second merely creates a new array reference, and binds it @array. Watch: my

RE: references and dereferencing

2002-06-06 Thread Nikola Janceski
One last question: is there a difference between: @{ $HASH{$key} } = @array; $HASH{$key} = \@array; ?? I really appreciate the references lesson! 8^) - Nik The views and opinions expressed in th

RE: references and dereferencing

2002-06-06 Thread Jeff 'japhy' Pinyan
On Jun 6, Nikola Janceski said: >$$onediminsional_hash_ref{$key} >@$onediminsional_array_ref[$index] The leading sigil denotes the amount of stuff being returned, NOT the data structure being worked with! It is the {} and [] that determine the data structure. @ARRAY = (1 .. 10); $x = \@ARR

RE: references and dereferencing

2002-06-06 Thread Nikola Janceski
dex] I guess it doens't work with multidimensional data structures? > -Original Message- > From: Jenda Krynicky [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 06, 2002 11:42 AM > To: Beginners (E-mail) > Subject: Re: references and dereferencing > > &