The stupid question is the question not asked | |
PerlMonks |
Re: Filtering CGI Inputby chas (Priest) |
on Apr 24, 2005 at 05:29 UTC ( [id://450874]=note: print w/replies, xml ) | Need Help?? |
$sid !~ /0-9/
is true if the input does not contain the exact sequence
"0-9". You probably want something like $sid =~ /^\d{1,5}$/ (That also matches 000, etc, but presumably that's OK.) chas
In Section
Seekers of Perl Wisdom
|
|