Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: The evolution of a solution to the 11/23 NPR puzzler.

by benizi (Hermit)
on Jan 20, 2004 at 14:05 UTC ( [id://322585]=note: print w/replies, xml ) Need Help??


in reply to The evolution of a solution to the 11/23 NPR puzzler.

Since nobody's posted a one-liner yet:

perl -lne '$_=lc; next if $d{$_}++; next unless s/(?:m|rn)$//; print "${_}m / ${_}rn" if $h{$_}++' /usr/share/dict/words

Doesn't quite handle capitalization correctly. e.g. "bim / barn", where bim is only in as "Bim".

And even though all these solutions print pairs of words... I don't see the answer. (benizi guesses he'll be kicking himself later for admitting that)

Update: ++halley. (Never having heard the expression, benizi refrains from kicking himself.)

Replies are listed 'Best First'.
Re: Re: The evolution of a solution to the 11/23 NPR puzzler.
by halley (Prior) on Jan 20, 2004 at 14:33 UTC
    "The restless Captain paced his ship from stem to stern." From fore to aft, from front to back.

    --
    [ e d @ h a l l e y . c c ]

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://322585]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (8)
As of 2024-04-23 17:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found