Don't ask to ask, just ask | |
PerlMonks |
Re^2: scalar in list contextby chromatic (Archbishop) |
on Jan 26, 2010 at 23:00 UTC ( [id://819799]=note: print w/replies, xml ) | Need Help?? |
There is no difference between @list= 1,2,3,4; and @list=(1,(2,3,(4))); Careful! Precedence makes a big difference between those two. You're thinking of @array = (1, 2, 3, 4) versus @array = (1, (2, 3, (4))).
In Section
Seekers of Perl Wisdom
|
|