Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: A PerlQt Calculator

by thunders (Priest)
on Jun 23, 2004 at 14:34 UTC ( #369045=note: print w/ replies, xml ) Need Help??


in reply to Re: A PerlQt Calculator
in thread A PerlQt Calculator

Oops, good catch. That was my mistake. The display was filtering out results with only one digit.

changing the filter fixes that.

$result =~ /^-?\d+\.?\d+$/ to $result =~ /^-?\d+\.?\d*?$/


Comment on Re^2: A PerlQt Calculator
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (8)
As of 2015-09-01 12:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred temperature scale is:










    Results (14 votes), past polls