Greetings, I have been trying to understand the "tr///cds" pattern matching expression using the Camel in a Nutshell book and another one that assures me that I can do it in 24 hours. I am looking at an expession and bouncing about all over Perldoc.com, yet I am thwarted. I am seeing strange lights out of the corner of my eye. Perl is cool.
$name =~ tr/a-zA-Z0-9-_ .,:;'&$#@!*()?-//cd; The Nutshell says: c = Compliment pattern1 ? OK pattern1, you are looking very nice today??? d = Delete found but unreplaced characters. s = Squash duplicate replaced characters. I'm not sure what any of these actually mean except posssibly "d" and I'm not so sure of that. I kinda get the drift about the =~ operator but I'm not sure of how it specifically handles the task of binding the expression to the variable. I am just accepting the premise that it's similar to feeding a parameter to a function and hoping that is close enough to correct and all that I need to know about it. Would someone please take the time to explain the above expression and the meaning of those (?switches)to me as though you were talking to... say a chimpanzee. I can poke at this keyboard all night long and still not come up with a regex. How did I ever evolve? Thank You. <Face pixelized to hide identity> -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]