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

Re: [FWP] string increment



Rick <rklement@pacbell.net> writes:

> Alistair.McGlinchy@marks-and-spencer.com wrote:
> > 
> > Rick Klement wrote
> > > New shot, shorter (but *much* slower) is:
> > >
> > >      perl -le'/^a*.z*$/&&print for aaaa..zzzz'
> > >
> > > (If 80 is par, what's 41 called?)
> > 
> > No glory here, the hard work's already been done, but I've knocked off a
> > stroke.
> > 
> > perl -le'map/^a*.z*$/&&print,aaaa..zzzz'
> 
> No, no, no... You get plenty of glory !!
> One character saved from something this
> short *is* a cool feat...

In that case, may I offer:

perl -le'map/^a*.z*$/&print,aaaa..zzzz

Ayethangyew.

-- 
Piers

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