On Mon, Sep 03, 2007 at 04:53:53 -0700, Yossi Klein wrote:
> sub c_tr {
> my ($c) = @_;
> return $string =~ tr/$c/$c/;
> }
Actually:
tr/$c//;
also works, but of course it's only for characters, not actual
strings.
--
Yuval Kogman <nothingmuch at woobling.org>
http://nothingmuch.woobling.org 0xEBD27418