in reply to
Pre-increment *and* Post-increment
You can't do
++$a++
because
++
returns a value, and not something you can modify. But you
can
write:
($a+=1)++
[download]
which should have the same effect.
Comment on
Re: Pre-increment *and* Post-increment
Select
or
Download
Code
In Section
Seekers of Perl Wisdom