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

Re: [FWP] string increment



> > 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.

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

is a bit safer, but then the quoted method is shorter.
--
Mark Rafn    dagon@dagon.net    <http://www.dagon.net/>   !G


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