And then there's the Inline::C method for testing a scalar Does it look like a number?.sub is_numeric { ($_[0] & ~ $_[0]) eq "0"; }
_________
broquaint
In reply to Re: Test for number or string
by broquaint
in thread Test for number or string
by nedals
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |