Whats wrong with a perl loop? Why use a loop form that
is inclined toward error when you dont have to?
for my $i (0..@vars-1){
}
Oww oww oww! Make the hurting stop! Avoiding confusion
between number-of-elements and last-valid-index is exactly
why Perlish for loops are (usually) safer than
C for loops. If you're going to be using
$i as an array index, at least loop from 0 to
$#vars instead of mucking about with length-1.
IMO, your loop is more error-prone than a C-style
loop, because eventually someone will forget the -1.
--
Good luck, tilly
:wq