Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^2: Play and win the word morph game with the help of Perl :)

by Ieronim (Friar)
on Jun 28, 2006 at 21:28 UTC ( [id://558155]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

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

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

    No recent polls found