Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Special chars in arguments using GetOptions (Getopt::Long)

by BUU (Prior)
on Nov 26, 2005 at 23:24 UTC ( [id://511960]=note: print w/replies, xml ) Need Help??


in reply to Special chars in arguments using GetOptions (Getopt::Long)

TESTS Numeric arguments can be specified as +n for greater than n, -n for less than n, n for exactly n.
And so on.

Replies are listed 'Best First'.
Re^2: Special chars in arguments using GetOptions (Getopt::Long)
by Ace128 (Hermit) on Nov 26, 2005 at 23:32 UTC
    Wow, think I have drunk too much alcohol ;) since that is pretty clever indeed and I never thought of it..! :)

    Although a problem accures if the user really mean -, and not <... (although I think I get it through the context, unless it can be both)

    UPDATE: Well, seems that + is removed from the argument by GetOptions... which means I cant know if user typed it or not...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-03-28 21:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found