Think about Loose Coupling | |
PerlMonks |
Re: Re: Re: Re: Idiomatic optimizationsby Joost (Canon) |
on May 01, 2002 at 08:29 UTC ( [id://163221]=note: print w/replies, xml ) | Need Help?? |
Just a few remarks (though i've got a sneaking suspicion i'm correcting typos here):
here $i will always turn out to be 0 (because of the my operator), so my $i=0; is more efficient.
How about $i=$i?1:0; - that's also a bit more readable. (at least to my eyes). Joost.
In Section
Meditations
|
|