Clunky as it may be, this is where Getopt::Long excels. With Getopt::Long, the -hyphenated options can be processed, while leaving non-hyphenated (such as filenames) untouched in @ARGV.
Actually, after you use Getopt::Long a few times I think you'll gain enough familiarity with it that you'll no longer consider it too clunky.
Dave
In reply to Re: getting args without clobbering @ARGV
by davido
in thread getting args without clobbering @ARGV
by bfdi533
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |