So you need to use the modified string after the tr. And don't try to stuff it all in one line ;-)my $str = "ab c,d.e"; $str =~ tr/ ,.//; # here $str is "abcde"
(Update: fixed match operator)
In reply to Re^3: Removing characters
by moritz
in thread SOLVED Removing characters
by Slug
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |