Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: expected 0 not result gotten

by quester (Vicar)
on Dec 22, 2011 at 06:40 UTC ( [id://944728]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -e 'print ((.0425*2) + .0025 ) - ((.0425*2) + .0025 ); print $/;'
    
  2. or download this
    $ perl -we 'print ((.0425*2) + .0025 ) - ((.0425*2) + .0025 ); print $
    +/;'
    print (...) interpreted as function at -e line 1.
    Useless use of subtraction (-) in void context at -e line 1.
    0.0875
    
  3. or download this
    $ perl -we 'print (((.0425*2) + .0025 ) - ((.0425*2) + .0025 )); print
    + $/;'
    0
    
    $ perl -we 'print +((.0425*2) + .0025 ) - ((.0425*2) + .0025 ); print 
    +$/;'
    0
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-18 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found