Which tests whether a scalar is a numeric value or a string value e.g 42 vs "42".sub is_numeric { ($_[0] & ~ $_[0]) eq "0"; }
_________
broquaint
In reply to Re: Test for numeric
by broquaint
in thread Test for numeric
by John M. Dlugosz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |