![]() |
|
"be consistent" | |
PerlMonks |
Re: Re: Re: Validating Numbers in CGI Script?by dha (Acolyte) |
on May 11, 2001 at 03:08 UTC ( #79601=note: print w/replies, xml ) | Need Help?? |
Of course, if you're going to use a regex(p), you might as well make it easy on yourself:
use Regexp::Common;
if ($thing =~ /^$RE{num}{dec}$/) {
(this particular example, of course, requires DWIM.pm... :-) dha
In Section
Seekers of Perl Wisdom
|
|