On Tue, Oct 17, 2000 at 06:45:19PM -0500, David L. Nicol wrote: > 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. > > > 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. I believe you're splitting hairs. What's the point of sorting alphabetically by the word that comes second alphabetically? Ronald ==== Want to unsubscribe from Fun With Perl? Well, if you insist... ==== Send email to <fwp-request@technofile.org> with message _body_ ==== unsubscribe