Your _isNumeric functions nearly the same as Scalar::Util's looks_like_number, mentioned by the other anon elsewhere in this thread. Scalar::Util is a core module, and exposes Perl's internal looks_like_number function, so it pretty much is built in, and your _isNumeric is just using it in a kind of roundabout way. Sorry, but this is a hoop you've built for yourself!
In reply to Re^3: validate if output of command is numeric or not
by Anonymous Monk
in thread validate if output of command is numeric or not
by kaka_2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |