Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by Russ (Deacon)
on May 22, 2000 at 04:58 UTC ( [id://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?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (4)
As of 2024-04-24 02:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found