Okay, many are going to flame me, but this looks like an excellent occasion to use a C-type loop:
for (my $count = 0; $count < scalar(@bar); $count++) { printf "%d -> %s\n", ($count, $bar[$count]); }
Awaiting your scorn, -gjb-
In reply to Re: foreach count variable
by gjb
in thread foreach count variable
by dreamy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |