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

Re: [FWP] nuts is stun spelled backwards



Ronald J Kimball wrote:
> 
> On Tue, Oct 17, 2000 at 01:49:35PM +0300, Ilmari Karonen wrote:
> >
> >   perl -nle'$h{$r=reverse}?print"$_ $r":$h{$_}++'  /usr/dict/words
> 
> Sneaky of you to swap the order of the words so it looks like the output is
> sorted properly.  But that puts the list in alphabetical order by the
> second word, not the first word.
> 
> Ronald

Peter's spec does not say anything about the ordering of the words
w/in the pair.  I believe Ilmari's putt reaches the hole.


David

-- 
                          David Nicol 816.235.1187 nicold@umkc.edu
                "After jotting these points down, we felt better."

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