in reply to Benchmarking chop/substr/split
I also intentionally left out the lc function. Frequency counts can be consolidated at the end of the loop, instead of performing an lc upon every iteration. Save yourself the O(n) step, and get more detailed frequency information while you're at it.$letters[ord chop]++ while $_;
MeowChow s aamecha.s a..a\u$&owag.print
|
|---|