Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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

Replies are listed 'Best First'.
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 about the Monastery: (10)
As of 2016-09-28 19:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Extraterrestrials haven't visited the Earth yet because:







    Results (538 votes). Check out past polls.