in reply to @ARGV: two different types of arguments

I'd strongly suggest that you take a look at Getopt::Long for all your parameter-processing needs.
  • Comment on Re: @ARGV: two different types of arguments