in reply to Re: foreach and arrays
in thread foreach and arrays
You do enjoy the benifits of lexically binded variables, don't you?
Also, you can save some typing with:
and use Perl for loops like Perl, not like C!my @array = qw(0 0 0 0 0); # well, not much on this one, but . . . my @array = (0)x5; # pure evil
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--
|
|---|