How to write a Perl program that adds up the numbers in a file and prints out their

Mousie

New member
sum, average,max, and min? The numbers are:
5
10
23
6
8
open (MYFILE, "list.txt");
while (<MYFILE>) {
chomp;

This is what I have so far..
 
Back
Top