in reply to foreach count variable
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-
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: foreach count variable
by andye (Curate) on Nov 18, 2002 at 21:46 UTC | |
|
Re: Re: foreach count variable
by dreamy (Sexton) on Nov 18, 2002 at 21:41 UTC | |
|
Re^2: foreach count variable
by Aristotle (Chancellor) on Nov 20, 2002 at 15:49 UTC |