Ronald J Kimball <rjk@linguist.dartmouth.edu> writes: > On Thu, Apr 27, 2000 at 01:38:31PM +0100, Piers Cawley wrote: > > Alistair.McGlinchy@marks-and-spencer.com writes: > > > > > Piers, > > > > > > > perl -le'map/^a*.z*$/&print,aaaa..zzzz > > > > > > I like removing the last "'" character. > > > > Bugger, that was a mistake. Should be: > > > > perl -le'map/^a*.z*$/&print,aaaa..zzzz' > > > > > But I think the 2nd "&" is still necessary. Otherwise you just get > > > aaaa..zzzz > > > > Have you tried it? It worked when I tested it. > > No, it does not work. & does not short circuit, so the regex is > superfluous and the entire list is printed. Yup. I'm off to go and fall on my sword now. -- Piers ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe