in reply to Re^2: validate if output of command is numeric or not
in thread validate if output of command is numeric or not
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!
|
|---|