in reply to Re: Re: TIMTOWTDI doesn't mean invent an outlandish approach (usually)
in thread TIMTOWTDI doesn't mean invent an outlandish approach (usually)

...And I always use "$i <= @array" instead of "$i < $#array"...

I hope not since they don't mean the same thing unless $[ = 2. However, please realize that $#array is actually:

$#array = $[ - 1 + @array;

In other words, if anyone ever sets $[ to anything other than the default 0, not only do they then deserve to be beaten with a rubber mallet but they also break your code. Of course, I'm one of those weirdos who does stuff like:

my @acceptable = grep { check $array[$_] } ($[..$#array);

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1