Simply do the following
my $count = $str =~ tr/%//; print "pcount: $count\n";
Prasad
In reply to Re: Counting how many times a character is in a string.
by prasadbabu
in thread Counting how many times a character is in a string.
by slloyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |