Of course, if this is homework, be prepared to explain why each of those is important. :-)if ( defined($x) && length($x) && $x !~ /\D/ && 0 <= $x && $x <= 10 ) +{ # It matches }
In reply to Re: check if its a number
by dragonchild
in thread check if its a number
by m.y
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |