Perl program to report data from input file?

pete840264

New member
Hello,

I am a Perl N00b and am hoping to get a little help with a Perl project I have to do for my class. Basically there is an input file which contains policy number, name if the insured, policy value, and the type of policy. These have to be sorted and output as a report that lists each policy type and counts the total value of each policy type. Also at the end there should be a count of all policies along with their total value. Here is an example of what the input file looks like, and how it's formatted. The actual input file is longer, but only contains about 20 lines or so...

2120, Eric Smith, 33000, Life
3516, Mary Kline, 18000, Auto
1525, Maria Carter, 3800, Auto
1627, Mark Anderson, 66000, Health
 
Back
Top