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

Re: [FWP] string increment



[Lotsa editing...]

> $ perl -le"map/^a*.z*$/&&print,aaaa..zzzz
>
> That is the desired output.
>
> $ perl -le"map/^a*.z*$/&print,aaaa..zzzz
> is >functionally equivalent to:
>
> perl -le'map print,aaaa..zzzz'
>
> and does not produce the desired output.

Is there any reason why no-one has suggested

  perl -le"print reverse$_ for aaaa..zzzz

which seems simpler?

Roman Stawski : ADPgsi - Employer Services - Southern Europe
   Tel: (33)(0) 1 5563 4216      Fax: (33)(0) 1 5563 5521

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