in reply to How to do this with shell scripting and perl one-line?

the file name is not got in $ARGV
In fact, it is not in @ARGV, but it is in $ARGV. See perlvar.
  • Comment on Re: How to do this with shell scripting and perl one-line?