in reply to Re^3: ARGV questionin thread ARGV question
It's best not to write code like this. If you have any switch processing to do, just use Getopt::Long.