Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re^2: Find nonnumeric scalars

by Not_a_Number (Prior)
on Jan 29, 2015 at 18:41 UTC ( [id://1114954]=note: print w/replies, xml ) Need Help??


in reply to Re: Find nonnumeric scalars
in thread Find nonnumeric scalars

Scalars -7, 4.55, and 10e6 are all numeric. Your regex /^\d+$/ tests only for positive integers.

Update: Minor tpyo

Update 2: hotpelmen has now completely altered the content of her/his original post, without indicating that (s)he has made any changes (note to hotpelmen: this is considered Bad Form on PM).

Replies are listed 'Best First'.
Re^3: Find nonnumeric scalars
by hotpelmen (Scribe) on Jan 29, 2015 at 21:08 UTC
    Yeah, you caught me in the middle of my updates. I saved a few times before adding update statement. No preview for updates, that's a problem. Sorry for distress.
Re^3: Find nonnumeric scalars
by hotpelmen (Scribe) on Jan 29, 2015 at 19:19 UTC
    Good point. Fixing.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2024-04-19 15:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found