in reply to Re: 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 :)

Thanks.
I modified the code according to your recommendations — i removed useless default values for $left and $right (theoreticaly the user can enter transform.pl 'test' '', but in this case he will get a VERY unexpected result :)) and removed the tr/// string.

Replies are listed 'Best First'.
Re^3: Play and win the word morph game with the help of Perl :)
by jwkrahn (Abbot) on Jun 28, 2006 at 22:03 UTC
    I never said that you should remove the tr/// operator, I was just wondering if you understood exactly what it was doing, or not doing? For instance, after $_ = lc; there should be no upper case letters in $_ so including A-Z in the list makes little sense.
      i understand what it does :)
      using tr/a-z//cd i removed all letters not in basic English alphabet, so the script could not be used for most other languages. i removed this line as it was a silly limitation.