Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: How to check if a scalar value is numeric or string?

by ikegami (Patriarch)
on Aug 27, 2009 at 16:10 UTC ( [id://791706]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    sub _isNumeric {
            my ($value) = @_; 
    ...
              };
    print "Key1: It is a number\n" if _isNumeric( $var->{'key1'} ) ;
    print "Key2: It is a number\n" if _isNumeric( $var->{'key2'} ) ;
    
  2. or download this
    Key1: It is a number
    Key2: It is a number
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2024-04-16 11:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found