Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

RE:(4) Flipper (++ instead of += 1)

by Russ (Deacon)
on May 22, 2000 at 04:58 UTC ( #14105=note: print w/replies, xml ) Need Help??


in reply to RE: RE(2): Flipper (Maintainability vs. personal style?)
in thread Flipper

turnstep said: Saying
$flip + 1;
does not change in any way the scalar referred to by $flip, while "++$flip" does.

Yes, turnstep, of course the preincrement modifies $flip.

The question at issue is, "Why do we care about modifying a variable twice?" Simple as that.

Go back and read the post and respond to the actual issue, please.

Russ

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2022-08-16 09:59 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?