Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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?
[choroba]: Yes, 216.92.34.251
[choroba]: depends on your DNS

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (5)
As of 2018-05-21 12:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?