in reply to Re: Pattern Substitution..
in thread Pattern Substitution..

No, it won't. tr/// in scalar context returns the number of characters translated; and the brackets are unnecessary. Not to mention, you're trying to modify a constant string. <code> ($new_string = "good food") =~ tr/od/ek/;

japhy -- Perl and Regex Hacker