Here's one bad way:
$isanum = !($x !~ y/.//) + $x =~ y/0-9// == $x =~ y/0-9.//c + $x !~ y/ +0-9// + length($x) && $x <= 10;
In reply to Re: check if its a number
by ysth
in thread check if its a number
by m.y
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |