On Fri, Feb 09, 2007 at 08:15:31AM +0800, Dan Jacobson wrote: > 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. >
Ummm...but I don't want to be nagged if it *is* what I want to do. This is Perl, not Microsoft. Steve Peters [EMAIL PROTECTED] -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]