Re: This Week on perl5-porters (7-13 June 2004)

[email protected] (Gisle Aas) 15 Jun 2004 10:05:17 -0700
Newsgroups perl.perl5.porters,perl.perl5.summary
Message-ID <[email protected]>
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