Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Matching numeric value between two digits

by SuicideJunkie (Vicar)
on Feb 04, 2013 at 21:48 UTC ( #1017015=note: print w/replies, xml ) Need Help??


in reply to Matching numeric value between two digits

Is 70.00 ok?

If so, I'd suggest a simple and $1 == int($1)

Replies are listed 'Best First'.
Re^2: Matching numeric value between two digits
by shadowfox (Sexton) on Feb 04, 2013 at 22:46 UTC
    Sadly no, I only want it to accept a whole number and no decimals; if they entered 20.00 i'd wait it to fail to no.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1017015]
help
Chatterbox?
[atcroft]: (Full disclosure: I may have the idea right but small typographical errors, so please test any code I suggest. :) )
[atcroft]: abner: Or are you wanting to do something where you need to bind an array to a placeholder (in which case the bind_param_array method may be of use.

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (8)
As of 2017-01-24 03:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (202 votes). Check out past polls.