in reply to Solve Word Ladders
By the way, thanks a ton for this program. I'm writing a short story spoof of Alice based on word ladders for a class, and I need this program to produce lots of ladders for me. At least, if my idea pans out. Perhaps if the story is any good, I'll put up a link, though it will have little to do with Perl. ;)
# This is around line 40 # Insert this where the second 'my @wordlist;' is declared. my @wordlist; while (<WORDS>) { $_ =~ /(\w*)/; $_ = $1; push @wordlist, $_ if length $_ == length $word[0]; } close (WORDS);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Solve Word Ladders
by chipmunk (Parson) on Nov 26, 2001 at 01:36 UTC |