Beefy Boxes and Bandwidth Generously Provided by pair Networks
Come for the quick hacks, stay for the epiphanies.
 
PerlMonks  

Perl can't make some easy arithmetics :(

by rsFalse (Chaplain)
on Oct 24, 2014 at 20:21 UTC ( #1104911=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while(<>){
        ($a, $b)=split/ /;
        print $a - $b, " ";
    ...
        print $a - $b, " ";
        print (($a+0)-($b+0), "\n");
        }
    
  2. or download this
    STDIN:
    9 7
    900000000000000009 900000000000000007
    ...
    2 2 2 2
    0 0 0 2
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (7)
As of 2023-11-30 07:12 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?