Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: GetOptions getting a string

by Your Mother (Archbishop)
on Mar 24, 2018 at 19:11 UTC ( [id://1211678]=note: print w/replies, xml ) Need Help??


in reply to GetOptions getting a string

For me, the use case seems too DWIM. I could be wrong and just can't think of an ideal case but it seems like you're trying to overload an argument list to be a trigger as well. It might be better served by either a default noop trigger arg like -flag 0 or -flag . or just having a new boolean flag, like -runnit, to do what you want -flag without arguments to do. You also have the option of processing your own argument list after (or even before but after is much more sane) Getopt is done if its options don't cover exactly what you want.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2024-04-24 12:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found