Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
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 meditating upon the Monastery: (10)
As of 2014-08-28 07:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (257 votes), past polls