Heres the thread: array index -1 oddityif ( @x ) { $x[-1]->meth(); } else { die "no elements in \@x\n"; # r whatever }
In reply to Re: Negative array subscript method call bug?
by shemp
in thread Negative array subscript method call bug?
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |