Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: Perl Golf idea

by tobyink (Abbot)
on Apr 30, 2012 at 22:51 UTC ( #968174=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
    perl -E'sub w{join"",sort pop=~/./g}$w=w pop;($w~~w$_)&&print for<>' .
    +/dict.txt acert
  2. or download this
    perl -E'sub w{"@{[sort pop=~/./g]}"}$w=w pop;($w~~w$_)&&print for<>' .
    +/dict.txt acert
  3. or download this
    perl -E'sub w{"@{[sort/./g]}"}$_=pop;$w=w;$w~~w&&print for<>' ./dict.t
    +xt acert
  4. or download this
    perl -E'sub w{"@{[sort/./g]}"}$w=w$_=pop;$w~~w&&print for<>' ./dict.tx
    +t acert
  5. or download this
    perl -E'sub w{[sort/./g]}$w=w$_=pop;$w~~w&&print for<>' ./dict.txt ace

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2016-10-24 18:20 GMT
Find Nodes?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?

    Results (309 votes). Check out past polls.