Re: This Week on perl5-porters (7-13 June 2004)
Gisle Aas <[email protected]> 15 Jun 2004 10:05:17 -0700
| Newsgroups | gmane.comp.lang.perl.perl5-summary |
|---|---|
| Message-ID | <lr8yeokb02.fsf__37112.111997749$1087332680@caliper.activestate.com> |
Rafael Garcia-Suarez <[email protected]> writes: > ".." optimized > The range ".." operator is usually optimized in a foreach loop, so that > the list is not constructed in place. However, for alphabetic ranges, > and when the range is not the only thing in the foreach() argument, this > optimization does not occur (bug #30123, reported by Michael G Schwern). Alphabetic ranges are certainly optimized. The optimization kicks in for all blocks of the form: for ((expr) .. (expr)) { #... } Regards, Gisle