Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask

Re: A function to determine if a string is numeric

by trwww (Priest)
on Feb 25, 2012 at 06:51 UTC ( #956069=note: print w/replies, xml ) Need Help??

in reply to A function to determine if a string is numeric

There is also Regexp::Common. Ex:

if ( $RE{num}{int}->matches($text) ) {...}
if ( $RE{num}{real}->matches($text) ) {...}

This library is cool because you can refine/define exactly what you mean by number.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://956069]
LanX grins
[marto]: anyway, don't come to Glasgow for the football :)
[holli]: the hell? i have a scriptblocker on.
[holli]: how do you update a different window without javascript?
[holli]: ah, chatterbox right
[marto]: it's a normal HTML form, with some hidden input fields
[holli]: forgot that thing exists for a moment.
LanX welcome to the twilight zone ...
[Eily]: LanX well since the onion is your eye you should see it everywhere
[marto]: sounds eye watering

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (12)
As of 2017-12-14 16:16 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (398 votes). Check out past polls.