in reply to Re^3: Boolean counter?
in thread Boolean counter?
$i appears only once, the behaviour is defined
You were thinking of$ perl -MO=Deparse,-p -le"print - --$i" BEGIN { $/ = "\n"; $\ = "\n"; } print((-(--$i))); -e syntax OK
print(-( ++$i - --$i ))
In Section
Seekers of Perl Wisdom