Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid

Re: Operators: arithmetic and otherwise

by lvanhout (Curate)
on Jun 15, 2004 at 03:10 UTC ( #366752=note: print w/ replies, xml ) Need Help??

in reply to Operators: arithmetic and otherwise

The second variable $a=3 should be $b=3 I believe:


print $a+$b #arithmetic operator prints 5 print $a.$b #string operator prints 2 plus the three or 23 print $a*$b #arithmetic operator prints 6 print $a x $b #string operators prints $a $b times or 2 three times. i +e 222

Comment on Re: Operators: arithmetic and otherwise
Select or Download Code

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (4)
As of 2015-11-29 21:54 GMT
Find Nodes?
    Voting Booth?

    What would be the most significant thing to happen if a rope (or wire) tied the Earth and the Moon together?

    Results (753 votes), past polls