develooper Front page | perl.perl5.porters | Postings from November 2012

Re: [perl #30123] foreach ("", "a".."zzzzzz") confuses range optimizer

Thread Previous | Thread Next
From:
wolfsage
Date:
November 25, 2012 05:13
Subject:
Re: [perl #30123] foreach ("", "a".."zzzzzz") confuses range optimizer
Message ID:
CAJ0K8biHTA5s1566mtX1NXtEBhSGYHkce=ZpcY-AuRFhzQuucg@mail.gmail.com
On Sat, Nov 24, 2012 at 3:57 PM, Father Chrysostomos via RT <
perlbug-followup@perl.org> wrote:

> On Sat Nov 24 08:16:13 2012, alh wrote:
> > I see these as being sensible uses of iteration:
> >
> > for ('a'..'z', qw(cat dog mouse), 1..10) { print $_ }
> >
> > my @found = grep { $_ =~ /./ } 1..10;
> >
> > my %hash = map { $_ => 1 } 1..10*;*
> >
> > But should this iterate at runtime or be pregenerated as it is now?
>
> That’s a hard question. :-)
>
>
I suppose we could slap together a C version of less.pm and then let users
;)

-- Matthew Horsfall (alh)

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About