http://qs321.pair.com?node_id=11114903


in reply to parsing @ARGV with Getopt::Long multiple times

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.

Replies are listed 'Best First'.
Re^2: parsing @ARGV with Getopt::Long multiple times
by bliako (Monsignor) on Apr 01, 2020 at 12:28 UTC

    Thanks that worked. Sorry I missed it when reading that doc.