Here is a snip from
perlop:
If the REPLACEMENTLIST is empty, the SEARCHLIST is replicated.
So a tr/=// is really a tr/=/=/ and is really only useful for counting
the occurance of '=' in your variable. Like this:
$cnt = ($fcast =~ tr/=//;)
You are right about the d option. That is what worked for me.
That will delete what in in the SEARCHLIST, but not in the
REPLACEMENT list. Since there is nothing in the REPLACEMENT list
everything in the SEARCHLIST ('=' in this case) will be deleted.
So I think what you want is:
$fcast =~ tr/=//d;
# or replace with a space
$fcast =~ tr/=/ /;