|Think about Loose Coupling|
Keeping a Count in foreachby arunhorne (Pilgrim)
|on Jun 17, 2002 at 15:21 UTC||Need Help??|
arunhorne has asked for the
wisdom of the Perl Monks concerning the following question:
If i have the following:
Obviously this just prints the scalars in @s one per line. However I want to know what number $e is in a list i.e to print:
Can I do this using the foreach structure easily or will I have to resort to a for loop?