$e = 1; foreach $line (@LINES) { print "You are on line $e"; $e++; } [download]
In reply to Re: Implicit loop counter by Keef in thread Implicit loop counter by Anonymous Monk