|
|
| Problems? Is your data what you think it is? | |
| PerlMonks |
RE: Operators: arithmetic and otherwiseby Falthor (Initiate) |
| on Jun 01, 2000 at 22:52 UTC ( [id://15920]=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.
$a=2;
$a=3;
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. ie 222
Shouldn't there be end of lin characters on the end of lines 3-7 ?
Falthor
In Section
Tutorials
|
|
||||||||||||||||||||||||