If input contains negative number or so. Thenif ($value !~ /^\d{2}$/) { print "input contains more than two digit"; }
cheers, --cif ($value !~ /^(-)*\d{2}$/) { print "input contains more than two digit"; }
In reply to Re: Validating numeric input
by cognizant
in thread Validating numeric input
by Kaire
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |