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

Re: Validating Numbers in CGI Script?

by larryk (Friar)
on May 10, 2001 at 14:23 UTC ( [id://79353]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my $invalue = param( 'INVALUE' );
    if ( defined $invalue ) {
    ...
    } else {
        $result = "Enter a value to test."
    }
    
  2. or download this
    $less->{'characters'}->{'typed'} == `"time in the pub" | more`; # :-D
    
  3. or download this
    /^(?:-)?\d+(?:\.\d+)?$/
    
  4. or download this
    /^(?:-)?(?:\d+(?:\.\d+)?|\.\d+)$/
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (4)
As of 2024-03-29 11:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found