Syntactic Confectionery Delight | |
PerlMonks |
Re: Print element using array referenceby arc_of_descent (Hermit) |
on Apr 21, 2010 at 12:45 UTC ( [id://836046]=note: print w/replies, xml ) | Need Help?? |
In the first expression, what you're doing is actually accessing an array slice.
If a list is accessed in scalar context, Perl will return the last element.
In Section
Seekers of Perl Wisdom
|
|