in reply to Re: foreach and arrays
in thread foreach and arrays

Just a pointer, in the time it takes you to type @myArray or $myCounter, you could just as easily type my @array or my $counter

You do enjoy the benifits of lexically binded variables, don't you?

Also, you can save some typing with:

my @array = qw(0 0 0 0 0); # well, not much on this one, but . . . my @array = (0)x5; # pure evil
and use Perl for loops like Perl, not like C!
for (0..$#array) { print $array[$_],','; }

jeff

R-R-R--R-R-R--R-R-R--R-R-R--R-R-R--
L-L--L-L--L-L--L-L--L-L--L-L--L-L--