Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: parsing @ARGV with Getopt::Long multiple times

by Corion (Pope)
on Apr 01, 2020 at 12:14 UTC ( #11114903=note: print w/replies, xml ) Need Help??


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 (Parson) on Apr 01, 2020 at 12:28 UTC

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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://11114903]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (8)
As of 2020-06-01 17:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you really want to know if there is extraterrestrial life?



    Results (5 votes). Check out past polls.

    Notices?