And you're using substr() where chop() would do, and probably where you could just use split().
Is how I would optimize your input loop.while (<STDIN>) { $count{$_}++ for split //, lc; }
In reply to Re: Frequency Analyzer
by japhy
in thread Frequency Analyzer
by Big Willy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |