Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Filtering CGI Input

by chas (Priest)
on Apr 24, 2005 at 05:29 UTC ( [id://450874]=note: print w/replies, xml ) Need Help??


in reply to Filtering CGI Input

$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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://450874]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-04-26 00:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found