in reply to @array[1] is valid??
But that's a rare case. In a more common case, which more often goes wrong is my ($foo) vs my $foo. But Perl doesn't warn there.
And considering that in perl6, @foo 1 is the right way to address a single element (what's perl6 syntax for a one element slice?), I think that warning ought to removed from Perl.
I've once send that in as a wish to p5p, but it was ignored.
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: @array[1] is valid??
by Aristotle (Chancellor) on Aug 05, 2003 at 14:19 UTC | |
by Abigail-II (Bishop) on Aug 05, 2003 at 15:09 UTC | |
by Aristotle (Chancellor) on Aug 05, 2003 at 15:51 UTC | |
by Abigail-II (Bishop) on Aug 05, 2003 at 16:12 UTC | |
by Aristotle (Chancellor) on Aug 05, 2003 at 16:47 UTC | |
|