http://www.perlmonks.org?node_id=1082037


in reply to Different behaviour of count++ or misunderstanding?

G'day vagabonding electron,

I see hdb has provided an answer to your immediate problem.

For more details on ++ (and --) see "perlop: Auto-increment and Auto-decrement".

-- Ken