Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: only numeric data

by tobyink (Abbot)
on Jun 28, 2013 at 05:48 UTC ( #1041143=note: print w/ replies, xml ) Need Help??


in reply to only numeric data

/^[0-9.]+$/

Though it depends on what you count as numeric. What about "1.2.3"? What about "infinity"?

package Cow { use Moo; has name => (is => 'lazy', default => sub { 'Mooington' }) } say Cow->new->name


Comment on Re: only numeric data
Download Code
Re^2: only numeric data
by Anonymous Monk on Jun 28, 2013 at 06:26 UTC

    hey this is a surety that numeric data will be some finite numbers with decimal like 25.1 , 998.1 , 55.1 ,56.9

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (16)
As of 2014-08-27 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (242 votes), past polls