Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Re: (Golf) Anagram Finder

by tachyon (Chancellor)
on Aug 04, 2001 at 16:09 UTC ( [id://102228]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @dict = qw (foo oof fff bar baz);
    $letters = 'ofo';
    ...
    sub anagram {
        grep{(join'',sort split//,$_[0])eq join'',sort/./g}@{pop()}
    }
    
  2. or download this
    grep{(join'',sort split//,$_[0])eq join'',sort/./g}@{pop}
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (1)
As of 2024-04-18 23:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found