Hello all,
I was recently in London, and while relaxing in the hotel room one day, I saw a cool game show called "Countdown." One part of the game requires contestants to find the longest word possible when given 9 letters. For example if the letters "d u n s c a e y t" came up, one possible answer with 6 letters would be "sunday" another would be "uneasy" Once all the letters are up, the contestants get 30 seconds to come up with an answer.
Well, I'm too lazy to think about such things when a computer can do it for me. Here's the challenge:
Write a program that will take the given letters and using the (english) spell check dictionary of your choice make and verify the validity of the longest word possible. There will always be 9 letters to start with. There may be multiple words with the same number of letters. The output should include all words with the highest number of letters.
If this gets a good response, I will post the numerical part of the game...so those of you that know the game, you have a head start.

update gbarr and dragonchild have so far come the closest to solving the problem. If you change the letters to "d u n s c a e y z" the highest number of letters returned is 6, and both of their solutions only print out "ascend" again, "uneasy" contains 6 letters as well and should also show up as well as "sunday" (if adjusted for case insensitiveness as I did in the test)

Stuffy
That's my story, and I'm sticking to it, unless I'm wrong in which case I will probably change it ;~)
may be reproduced under the SDL

In reply to "Countdown" (golf) by stuffy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.