in reply to Counting using transliteration
$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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Counting using transliteration
by demerphq (Chancellor) on Feb 25, 2002 at 12:05 UTC |