Perl-Sensitive Sunglasses | |
PerlMonks |
Re: Perl Lists and Arraysby AndyZaft (Hermit) |
on Sep 08, 2010 at 19:41 UTC ( [id://859400]=note: print w/replies, xml ) | Need Help?? |
Please use code tags for code, it will make things easier on all of us. Then if you wish to assign a list to an array, use the @ symbol instead of the $. That will actually print what you expect:
I'd suggest going over the perldocs, especially the perldata section to understand difference between declaring scalars and arrays and how assignment of list would change depending on context.
In Section
Seekers of Perl Wisdom
|
|