in reply to Re^3: Play and win the word morph game with the help of Perl :)
in thread Play and win the word morph game with the help of Perl :)

of course the non-dictionary words can appear only at the endpoints.

The variant with Storable is about 10 time faster than mine :) great :)

  • Comment on Re^4: Play and win the word morph game with the help of Perl :)

Replies are listed 'Best First'.
Re^5: Play and win the word morph game with the help of Perl :)
by Limbic~Region (Chancellor) on Jun 29, 2006 at 14:13 UTC
    Ieronim,
    I truly like the elegance of my previous solution. It is Concise, straight forward, and fast. You can even remove the build_db() after the database has been compiled as I have shown below in about 20 lines of code: For the sake of completeness, I am providing the following version which allows you to use non-dictionary words at the endpoints. Feel free to adjust this as you see fit.

    Cheers - L~R