Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
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 musing on the Monastery: (14)
As of 2015-07-06 14:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (75 votes), past polls