Mel Matsuoka wrote:
: >Randal L. Schwartz wrote:
: >: ...
: >: Second might mean something like:
: >:
: >: $foo_length = SOME_LIST # although this can't happen
: >: ========= list
: >: = assigned to
: >: =========== scalar
: >:
: >: See the difference? And the latter can't happen.
: >
: >Sure it can. Well, the list itself doesn't get assigned to the scalar,
: >but an assignment does get made: The last element of SOME_LIST to
: >$foo_length. So
: >
: >my $number_of_pets = ('dog','cat','iguana');
: >
: >sets $number_of_pets to 'iguana'.
:
:
: Methinks you actually /validated/ Randal's post, not contradicted it ;)
Actually, I was reacting in a blind fury to the words "can't happen".
I hate to see that in a post about Perl. ;)
-- tdk
- RE: Extra <INPUT TYPE="hidden" NAME="... Moon, John
- RE: Extra <INPUT TYPE="hidden" NAME=&... Kurt Edmiston
- RE: Extra <INPUT TYPE="hidden" NAME=&... Moon, John
- RE: Extra <INPUT TYPE="hidden" NA... Curtis Poe
- RE: Extra <INPUT TYPE="hidden" NAME=&... Tillema, Glenn
- Re: Extra <INPUT TYPE="hidden" NA... Randal L. Schwartz
- RE: Extra <INPUT TYPE="hidden" NAME=&... Tillema, Glenn
- Re: Extra <INPUT TYPE="hidden" NAME=&... Timothy Kimball
- Re: Extra <INPUT TYPE="hidden" NA... Mel Matsuoka
- Re: Extra <INPUT TYPE="hidden" NAME=&... Curtis Poe
- Re: Extra <INPUT TYPE="hidden" NAME=&... Timothy Kimball
- Re: Extra <INPUT TYPE="hidden" NAME=&... Peter Cline
- Re: Extra <INPUT TYPE="hidden" NAME=&... Randal L. Schwartz
- Re: Extra <INPUT TYPE="hidden" NA... Brett W. McCoy
- Re: Extra <INPUT TYPE="hidden" NAME=&... Randal L. Schwartz
- Re: Extra <INPUT TYPE="hidden" NAME=&... Peter Cline
- Re: Extra <INPUT TYPE="hidden" NA... Brett W. McCoy
- Re: Extra <INPUT TYPE="hidden" NAME=&... David Labatte
