# @ARGV may have more than one file in it while () { print "$.:$_\n"; } continue { close ARGV if eof; }