http://www.perlmonks.org?node_id=28841


in reply to How do i escape a '/' character when using tr?

That's odd.
$count_slash = tr/\///;
works just fine in my copy of Perl. Or you can use an alternate delimiter:
$count_slash = tr#/##;