in reply to Re: Perl Help
in thread Perl Help

Regexes aren't good for counting anything. (Yes, there are regex hacks that count things, but we leave that aside for a moment...)

You should traverse your lines char by char and then check (perhaps with a regex, or with a hash lookup) if the char is interesting to you.