Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: Detecting if a scalar has a number or string

by water (Deacon)
on Nov 18, 2004 at 02:23 UTC ( [id://408679]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
    # untested!
    use Regexp::Common;
    ...
     # determine if numberish.  roll-your-own or i prefer CPAN.
     return $s =~ /$RE{num}{real}/;
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (None)
    As of 2024-04-19 00:10 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found