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

Re: Adding 2 + 2

by ikegami (Patriarch)
on Jul 22, 2005 at 11:47 UTC ( [id://477263]=note: print w/replies, xml ) Need Help??

This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.


in reply to Adding 2 + 2

$lterm = 2; # lterm = 2 $rterm = 2; # rterm = 2 $#add = $lterm; pop(@add); # add = lterm push(@acc, @add); # acc += add $#add = $rterm; pop(@add); # add = rterm push(@acc, @add); # acc += add push(@acc, 1); $sum = $#acc; # sum = acc print("$sum\n");

It must be fast, since the addition is done by push, which is written in C! ;)

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://477263]
help
Sections?
Information?
Find Nodes?
Leftovers?
    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.