Mike Tran wrote:
I have a file which has two columns one called Basenumber the other Rating (Rating.txt), how do I loop through and get an average for the Rating column for each distinct baseNumber?
Use a hash.
I want to write the new result out into a new file called AvgRatings.txt.
What have you tried? Show us your best attempt, and somebody may be willing to help you get it right.
-- Gunnar Hjalmarsson Email: http://www.gunnar.cc/cgi-bin/contact.pl -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/