Ah ha, the user was actually trying to do a array slice!
Therefore diagnostics should say "if you were attempting to do a array
slice, then just use @ instead of $"!

It is much more likely the user (er, current user, er, me) was trying
to do a slice than a multidimensional array, so both diagnostics and
the basic messages should be enhanced to consider this!

B> See also the diagnostics module, which outputs the appropriate detail
B> from that page on error:

B>   $ perl -Mdiagnostics -e '$F[5,10]'
B>   Multidimensional syntax $F[5,10] not supported at -e line 1 (#1)
B>       (W syntax) Multidimensional arrays aren't written like $foo[1,2,3].
B>       They're written like $foo[1][2][3], as in C.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to