On Sun, 11 Dec 2005, Octavian Rasnita wrote:

> Can anyone explain why:
> 
> $i++;
> 
> is faster

Not that I know for sure, but I'd imagine the explanation is that, deep 
in the bowels of Perl, the ++ operator is optimized in a way that a more 
generic operator like += or = can't be.

But I could be wrong.

How much faster is it?



-- 
Chris Devers

~Ò#ŽGn¹$¬äð
-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>

Reply via email to