Apr 4, 2005, 12:48 PM
Post #1 of 3
I want to show the name and a total for each person listed in file, each person may have several records. The current report looks as follows. CDR Worker Retention Points List
Sum of records in file?
Name Points Date Weekend
Chief Details Chris Frank 10 03/29/2005 Region Chief Hospitality John Frank 10 03/29/2005 Webmaster John Frank 10 03/30/2005
Region Chief T&s
The code is as follows:
print "Content-type: text/html\n\n";
print"<h3>CDR Worker Retention Points List</h3>";
open(DAT, $data_file) || die("Could not open file!");
foreach $worker (sort @raw_data)
$fullname=sprintf("%s %s", $fname, $lname);
What changes are need to just list the name and total points?