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?? |
turnstep said:
Saying
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
In Section
Cool Uses for Perl
|
|