Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Frequency Analyzerby japhy (Canon) |
on Mar 16, 2001 at 20:38 UTC ( [id://64948]=note: print w/replies, xml ) | Need Help?? |
Your s/// for converting characters to lowercase is far too much work, and the use of $& is poisonous. I'd use the lc() function.
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. japhy -- Perl and Regex Hacker
In Section
Code Catacombs
|
|