in reply to check if its a number
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 }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: check if its a number
by m.y (Novice) on Apr 14, 2008 at 18:47 UTC |