[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] sifting



On Wed, Apr 12, 2000 at 10:13:13AM -0700, Larry Rosler wrote:
> From: Jeff Pinyan [mailto:jeffp@crusoe.net]
> > On Apr 12, John Porter said:
> >
> > >print
> > >  map { substr($_,1) }
> > >  sort
> > >  map {
> > >    my $k = 4;
> > >    /gnome/   and $k = 2;
> > >    /session/ and $k--;
> > >    $k.$_
> > >  }
> > >  <DATA>;
> >
> > That sorts the data within itself -- a possibly unwanted side effect.
> > But I like the GR transform.  It would need to be scalable though.
> 
> I like the GR transform, also.  :-)
> 
> I don't know what you mean by scalability in this case.

This solution will not work for more than 2 regexes.

Ronald


==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe