Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^10: Pre vs Post Incrementing variables

by shmem (Chancellor)
on Sep 13, 2010 at 14:30 UTC ( #859995=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -E '$c=1; sub{$_[0]+=5}->($c++);say $c'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://859995]
help
Chatterbox?
Eily brings the milk
[holli]: I got into a fight yesterday and won.
[holli]: No, that's not true. I started it.

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (7)
As of 2017-12-13 17:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (373 votes). Check out past polls.

    Notices?