$chars{$_}++ for split //, $line;
Or if you want to filter out a range of characters later: $chars[ord $_]++ for split //, $line; Set the scope of %chars or @chars as appropriate.
--
John.
In reply to Re: Counting using transliteration
by jmcnamara
in thread Counting using transliteration
by basm100
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |