in reply to
Keeping a Count in foreach
Would something like:
$i=0; foreach $e (@s) { print $i++." $e\n"; }
[download]
suffice? If not, could you clarify your intent?
Thanks, Jason
Comment on
Re: Keeping a Count in foreach
Download
Code
In Section
Seekers of Perl Wisdom