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...