On Mon, Oct 07, 2002 at 08:01:41AM -0700, Erik Price wrote:
> Here is a snippet of a script I am working on.  It doesn't do what I
> expect, which is simply to remove all of the occurrences of certain
> characters from a string using the transliteration (tr///) operator.

>         $money =~ tr/''""$ ,//;

In order to delete characters with tr///, you must use the /d modifier.

tr/''""$ ,//d;

Other modifiers for tr/// include /s, to squash runs of characters, and /c,
to complement the search list.

Ronald
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to