|go ahead... be a heretic|
getting iteration number inside iteration loopby jesuashok (Curate)
|on Jun 29, 2007 at 07:20 UTC||Need Help??|
jesuashok has asked for the
wisdom of the Perl Monks concerning the following question:
Apologies if this has been discussed already.
In the above code to get the iteration number I am using a explicit flag to get the iteration count. I am interested to know, is there any built-in variable available to hold the iteration count ? For example $. holds the line number during the any FILEHANDLING operation.