Scalar value @arr[-2] better written as $arr[-2]
And it should be $arr[-2] (with a $ sigil) at least in current Perl (Perl 6 will change that).
In reply to Re^2: Get Element inArray
by Thilosophy
in thread Get Element inArray
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |