Maybe it should break it, cos it's some funky and quite
possibly just
plain broken syntax, but ...
$ perl-5.8.8/bin/perl -e '$foo=[qw(a b c)];print $#{ $foo}."n"'
2
$ perl-5.9.5/bin/perl5.9.5 -e '$foo=[qw(a b c)];print
$#{ $foo}."n"'
-1
With strictness turned on ...
$ perl-5.9.5/bin/perl5.9.5 -Mstrict -e '
my $foo=[qw(a b c)];print $#{ $foo}."n"'
Can't use string ("3") as an ARRAY ref ...
whereas perl 5.8.8's strict.pm is silent on the matter.
--
David Cantrell | Cake Smuggler Extraordinaire
More people are driven insane through religious hysteria
than
by drinking alcohol. -- W C Fields
|