Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: alphabet countingby sauoq (Abbot) |
on Jun 02, 2012 at 13:44 UTC ( [id://974013]=note: print w/replies, xml ) | Need Help?? |
You are printing inside your loop. You want to accumulate your values and then only print them after you are done. As an aside, it would be more perlish if you were using a hash to accumulate your values... you could change all your ifs to a single line. And it's probably not a good idea to call the filehandle IN when you are using it for output.
-sauoq "My two cents aren't worth a dime.";
In Section
Seekers of Perl Wisdom
|
|