in reply to Re: How to reset a variable for each file inside a while( <> ) loop?
in thread How to reset a variable for each file inside a while( <> ) loop?

Thanks for this valuable reminder, rminner!

The only problem I see is that the special variable $. is subject to the very problem I am trying to escape from: it increases across all lines in all files in @ARGV.