in reply to Negative array subscript method call bug?
As a general rule, perl error messages try to be as short as possible while still conveying all of the neccessary info that sets *this* type of error apart from *that* type of error.
The main motivation for this (as i understand it) is to keep them short for people who allready understand the various classes of problems, and just need a quick pointer to the line number and the type of think they screwed up.
If/when people are confused by perl error messages, they should ALWAYS consult perldiag, or use diagnostics
laptop:~> perl -Mdiagnostics -e 'my @x; $x[-1]->meth' Modification of non-creatable array value attempted, subscript -1 at - +e line 1 (#1) (F) You tried to make an array value spring into existence, and th +e subscript was probably negative, even counting from end of the arr +ay backwards. Uncaught exception from user code: Modification of non-creatable array value attempted, subscript + -1 at -e line 1.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Negative array subscript method call bug?
by BUU (Prior) on Aug 07, 2004 at 19:20 UTC | |
by hossman (Prior) on Aug 08, 2004 at 05:54 UTC | |
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 | |
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 | |
|