in reply to Auto-increment frenzy

$a=$a++ + $a++;

That's undefined behaviour. Pink monkeys might fly out of your nose. Discussing what the output will be is pointless.

Abigail

Replies are listed 'Best First'.
Re: Re: Auto-increment frenzy
by mildside (Friar) on Aug 26, 2003 at 23:43 UTC
    Pink monkeys might fly out of your nose.
    Wow! I didn't realise Perl could do that. There should be some sort of health warning...

    Cheers!

Re^2: Auto-increment frenzy
by PhilHibbs (Hermit) on Sep 02, 2003 at 09:05 UTC
    Pink monkeys might fly out of your nose.
    That's an extreme case, but you always have to beware the HCF instruction when undefined behaviour looms.