in reply to Re^2: Automatic Loop Counter not in perl
in thread Automatic Loop Counter not in perl
my @array = qw{zero one two}; for my $i (0..$#array){ print qq{$i\t$array[$i]\n}; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Automatic Loop Counter not in perl
by ikegami (Patriarch) on Aug 21, 2007 at 14:44 UTC |