On Thu, 27 Apr 2000, Ronald J Kimball wrote: > 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. > Not trying to start any arguments, or prolong them, but I tried both of the bits of code quoted above, on Win NT 4.0, using ActiveState Perl 5.6. The first (which is purported to give correct output), gave me output which went through the first iteration correctly, but then started jumping around and skipping a lot of values. I wound up with about 50 lines of output. When I entered the second bit of code (the 'incorrect' version), it started streaming strings down my screen, and I could watch the progression of the values. So, I don't understand what it means, or why it is, but it is a point of data in the quest for fun. Ken [R:\] perl -v This is perl, v5.6.0 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2000, Larry Wall Binary build 613 provided by ActiveState Tool Corp. http://www.ActiveState.com Built 12:36:25 Mar 24 2000 Perl may be copied only under the terms of either the Artistic License or the GNU General Public License, which may be found in the Perl 5.0 source kit. Complete documentation for Perl, including FAQ lists, should be found on this system using `man perl' or `perldoc perl'. If you have access to the Internet, point your browser at http://www.perl.com/, the Perl Home Page. -- ><> Ken Scott kscott@pcisys.net http://www.pcisys.net/~kscott This is the day that the Lord has made; I will rejoice and be glad in it! -- Psalm 118:24 ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe