Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: GetOptions non-option callback

by jimbojones (Friar)
on Feb 24, 2005 at 20:30 UTC ( #434245=note: print w/ replies, xml ) Need Help??


in reply to GetOptions non-option callback

If you want to leave unmatched options in @ARGV, use

Getopt::Long::Configure( "pass_through" );
or use the "--" construction.

-j


Comment on Re: GetOptions non-option callback
Download Code
Re^2: GetOptions non-option callback
by anadem (Scribe) on Feb 24, 2005 at 20:41 UTC
    well, I'd prefer to catch bad options but maybe I should leave them in @ARGV and parse that after GetOptions, since my callback isn't working.

    Edit: pass_though seems to enable the callback functionality (despite the docs) so I'll just use that. Thanks!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (11)
As of 2014-10-01 14:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (26 votes), past polls