in reply to Re^2: Negative array subscript method call bug?
in thread Negative array subscript method call bug?
I started to write this...
It doesn't. perl can't even make it that far because it can't figure out what it is you are trying to call "meth" on. Before it ever even gets arround to trying, it has to "make an array value spring into existence" and when it tried, it found that "subscript -1" ment "the subscript was (probably) negative" so ultimately you were asking it to set (aka: modify) a "non-creatable array value"
...but then i started to see your point: "Modification" ? why is refrencing the (non-creatable) array value to call a method on it considered a modification?
It would make more sense to say something like "Reference of non-creatable array value attempted"...
laptop:~> perl -e '$y = \$x[-1000];' Modification of non-creatable array value attempted, subscript -1000 a +t -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Negative array subscript method call bug?
by ysth (Canon) on Aug 08, 2004 at 07:39 UTC | |
by hossman (Prior) on Aug 08, 2004 at 08:09 UTC | |
by demerphq (Chancellor) on Aug 09, 2004 at 09:26 UTC | |
by ysth (Canon) on Aug 09, 2004 at 10:05 UTC | |
|
Re^4: Negative array subscript method call bug?
by BUU (Prior) on Aug 08, 2004 at 06:21 UTC | |
by BrowserUk (Patriarch) on Aug 08, 2004 at 07:27 UTC | |
by BUU (Prior) on Aug 08, 2004 at 09:19 UTC | |
by demerphq (Chancellor) on Aug 08, 2004 at 10:55 UTC | |
by BUU (Prior) on Aug 08, 2004 at 20:04 UTC | |
by BrowserUk (Patriarch) on Aug 09, 2004 at 10:06 UTC | |
by ysth (Canon) on Aug 09, 2004 at 19:20 UTC | |
| |
|