Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Check user input - reimplementation

by YuckFoo (Abbot)
on Dec 15, 2003 at 18:48 UTC ( [id://314876]=note: print w/replies, xml ) Need Help??


in reply to Check user input - reimplementation

kiat,

Your numeric check is pretty weak. I think it should at least allow for a leading '-'. For some ideas for numeric regex checks see perlman: perlfaq4 or do perldoc -q 'is a number' from your command line.

YuckFoo

  • Comment on Re: Check user input - reimplementation

Replies are listed 'Best First'.
Re: Re: Check user input - reimplementation
by kiat (Vicar) on Dec 15, 2003 at 23:28 UTC
    Thanks YuckFoo!

    In the context I'm using it, it's really just checking for a number - like an id thing that's associated with a name. I'll look up the 'is a number' check to see how I can modify that part.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (8)
As of 2024-04-23 07:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found