in reply to Keeping a Count in foreach
foreach $e (@s) { print(($.||1..$.&&0)-1," $e\n"); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Keeping a Count in foreach
by particle (Vicar) on Jun 17, 2002 at 19:04 UTC | |
| |
Re^2: Keeping a Count in foreach
by Anonymous Monk on May 10, 2012 at 03:41 UTC | |
Re^2: Keeping a Count in foreach
by Anonymous Monk on May 10, 2012 at 03:41 UTC |
In Section
Seekers of Perl Wisdom