In this first case, $x[ 0 ] exists, so $x[ -1 ] can be translated asWhich first case? In all of my cases, @x is empty. my @x; @x = (); $x = $x[-1]; $x->meth Theres no problem there with just *accessing* the non existant index to assign it to a variable. It doesn't even error. So why does calling the method attempt to modify it and there for create aforesaid error message?
In reply to Re^6: Negative array subscript method call bug?
by BUU
in thread Negative array subscript method call bug?
by BUU
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |