|
|
| P is for Practical | |
| PerlMonks |
RE: Operators: arithmetic and otherwiseby Falthor (Initiate) |
| on Jun 02, 2000 at 02:52 UTC ( #15920=note: print w/ replies, xml ) | Need Help?? |
|
$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
|
|
||||||||||||||||||||