in reply to Is there a Perl variable to count iterations in a loop?
You can find a list of special variables—like $.—in perlvar.