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

Re: [FWP] string increment



On Thu, Apr 27, 2000 at 08:32:51AM -0700, Mark Rafn wrote:
> > > Any advance on this though?
> > > 
> > > perl -le'map/^a*.z*$/&print,aaaa..zzzz'
> 
> Why bother quoting the code?
> 
> perl -lemap/^a*.z*$/\&print,aaaa..zzzz
> 
> is just fine unless you run it from a very oddly named directory
> structure or a shell with different metacharacters than bash.

You still need two ampersands, which means you need two backslashes, which
means it's the same length as the original working solution.  :)

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

Ronald

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