in reply to Working out which file a script is working on

When processing the @ARGV array with a while (<>) { ... } loop, you can access the filename in $ARGV.

japhy -- Perl and Regex Hacker
  • Comment on Re: Working out which file a script is working on