in reply to Re: How to check if a scalar value is numeric or string?
in thread How to check if a scalar value is numeric or string?
1. Use GetOptions to process the input command line. 2. Do the required validation. This will result in modifying the command line paramteres and resultant will be stored in a hash. 3. Use this hash in order to form the command line again.The problem is while doing the 3rd step, I need to distinguish if a given argument is a toggle or a parameter. So, I want to distinguish between 1( toggle ) and '1'( argument ).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to check if a scalar value is numeric or string?
by ikegami (Patriarch) on Aug 27, 2009 at 15:02 UTC | |
by bgupta (Novice) on Aug 27, 2009 at 15:23 UTC | |
by ikegami (Patriarch) on Aug 27, 2009 at 16:00 UTC | |
|
Re^3: How to check if a scalar value is numeric or string?
by bv (Friar) on Aug 27, 2009 at 15:35 UTC | |
|
Re^3: How to check if a scalar value is numeric or string?
by GrandFather (Saint) on Aug 27, 2009 at 21:30 UTC |