Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re: only want numerics in field

by Limbic~Region (Chancellor)
on Apr 21, 2014 at 15:44 UTC ( #1083033=note: print w/ replies, xml ) Need Help??


in reply to only want numerics in field

newby2perl,
Scalar::Util has a function call looks_like_number(). The only thing is I believe it allows scientific notation which your example doesn't include.

Cheers - L~R


Comment on Re: only want numerics in field

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (8)
As of 2016-02-09 00:25 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (291 votes), past polls