"be consistent" | |
PerlMonks |
Re: scalar in list contextby Crackers2 (Parson) |
on Jan 26, 2010 at 21:38 UTC ( [id://819785]=note: print w/replies, xml ) | Need Help?? |
Maybe you mean the context of the assignment?
Where the first will print "one" and the second will print "3", since (IIRC) assignment forces the context of the LHS onto the RHS. Update: See ikegami's post below for the correct explanation of what I was trying to say.
In Section
Seekers of Perl Wisdom
|
|