in reply to Frequency Analyzer
And you're using substr() where chop() would do, and probably where you could just use split().
while (<STDIN>) { $count{$_}++ for split //, lc; } [download]