I think you want the pass_through option to the first GetOptions() call. This will collect only the things it knows from @ARGV and leave the rest there.
In reply to Re: parsing @ARGV with Getopt::Long multiple times
by Corion
in thread parsing @ARGV with Getopt::Long multiple times
by bliako
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |