my $pcount = $str =~ tr/%//;
See tr.
Makeshifts last the longest.
In reply to Re: Counting how many times a character is in a string.
by Aristotle
in thread Counting how many times a character is in a string.
by slloyd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |