Think about Loose Coupling PerlMonks

### RE: Operators: arithmetic and otherwise

 on Apr 24, 2000 at 22:31 UTC ( #8759=note: print w/replies, xml ) Need Help??

in reply to Operators: arithmetic and otherwise

``` \$a=3;
\$b="x";
\$c=4;
\$a*=3;     #\$a=\$a*3; \$a now equal to 9;
\$a/=3;     #\$a=\$a/3; \$a (9) divided by three which equals 3;
\$a+=2;     #\$a=\$a+2; \$a is now equal to 5;
\$a-=2;     #\$a=\$a/2; \$a is now equal to 3;
\$b x=3;    #\$b=\$b x \$3 \$b is now equal to "xxx";
\$b .="33"; #b=\$b."33"  \$b is now equal to "xxx33";
```
Typo in 7th line? Perhaps ought to be #\$a=\$a-2;
• Comment on RE: Operators: arithmetic and otherwise

Replies are listed 'Best First'.
Re^2: Operators: arithmetic and otherwise
by tjshankar (Initiate) on Apr 20, 2005 at 00:55 UTC
Typo in 8th line. #\$b=\$b x 3 \$b is now equal to "xxx";

Create A New User
Node Status?
node history
Node Type: note [id://8759]
help
Chatterbox?
 [1nickt]: Corion HPs? ugh. I was impressed with Lenovo's gaming laptops; if it weren't for the red backlighting and general flashiness of the aesthetic, I might have gone with that. But all that was until I discovered that the Dell Precision line is still around. [1nickt]: stevieb I don;t doubt that there's a difference. BestBuy has "consumer" models only on display. [ambrus]: 1nickt: for some reason, these days they call every computer "gaming", even ones that gamers wouldn't buy. I've bought a keyboard that was labelled "gamer", despite that it has hard springs and seems to be way better for typing than for gaming; [1nickt]: I though the gamers like that because they bash the keys so hard. [ambrus]: and I've seen motherboards with no fast expansion ports for a video card but built-in hardware RAID advertized as "gaming".

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (14)
As of 2017-03-27 13:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
Should Pluto Get Its Planethood Back?

Results (320 votes). Check out past polls.