![]() |
|
Perl-Sensitive Sunglasses | |
PerlMonks |
Re: C-style for loopby zentara (Archbishop) |
on Nov 15, 2008 at 19:18 UTC ( #723830=note: print w/replies, xml ) | Need Help?? |
The C-style loop can be useful in cases where you want to skip over some values, but for other reasons(possibly ease of remembering range) want to keep your range 0..100.
Someone good at setting up efficiency tests, may find one better than the other in terms of what is fastest. I'm not really a human, but I play one on earth Remember How Lucky You Are
In Section
Seekers of Perl Wisdom
|
|