in reply to Re^5: Negative array subscript method call bug?
in thread Negative array subscript method call bug?
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?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: Negative array subscript method call bug?
by demerphq (Chancellor) on Aug 08, 2004 at 10:55 UTC | |
by BUU (Prior) on Aug 08, 2004 at 20:04 UTC | |
|
Re^7: Negative array subscript method call bug?
by BrowserUk (Patriarch) on Aug 09, 2004 at 10:06 UTC | |
by ysth (Canon) on Aug 09, 2004 at 19:20 UTC | |
by BrowserUk (Patriarch) on Aug 09, 2004 at 19:40 UTC | |
| A reply falls below the community's threshold of quality. You may see it by logging in. |