Disclaimer: untested, but theoretically valid. (corrected on 15 April as turnstep noticed a typo)s/([a-zA-Z])/{ $count{$1}++; $1 }/eg while <>; foreach (A .. Z) { $count{lc($_)} += $count{$_} || 0; }
In reply to Re: How To Do This Better?
by chromatic
in thread How To Do This Better?
by buzzcutbuddha
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |