Take a look at the looks_like_number() function in Scalar::Util. The module is distributed with Perl so there's no installation required.
Your High() routine would appear to have some problems. The condition elsif(1) will always be TRUE so you'll never get to the call to AsNumber(). Once you've fixed that up, note that you have no terminal else - what happens if the three (els)if conditions are all FALSE?
-- Ken
In reply to Re: How to implement numeric checking in my program.
by kcott
in thread How to implement numeric checking in my program.
by Tails
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |