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

Re: [FWP] string increment



On Thu, Apr 27, 2000 at 07:48:32PM +0100, BAZLEY, Sebastian wrote:
> VMS also does not mind if the trailing " is omitted.
> 
> But it gives:
> 
> $ perl -le"map/^a*.z*$/&&print,aaaa..zzzz
> aaaa
> aaab
> ....
> aaaz
> aabz
> ....
> aazz
> ....
> wzzz
> xzzz
> yzzz
> zzzz

Please review the earlier messages in this thread.  That is the desired
output.


> whereas
> 
> $ perl -le"map/^a*.z*$/&print,aaaa..zzzz
> 
> seems to give the correct output.

No, it does not, as has already been explained several times.  That code is
functionally equivalent to:

perl -le'map print,aaaa..zzzz'

and does not produce the desired output.

Ronald

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