in reply to Mean and standard deviation loop

I need to loop through this file and calculate the mean and standard deviation for each Name and ID pair (cols 1 and 3).
#Pseudocode/pseduoalgo - whatever you call it @arr=<FILE>; #slurp the file into array for $line (@arr) #Loop through the file { #Do you need to chomp the line? #Do you need to split the line on comma delimiter? #Do you need a mean calculation formula here? #Do you need a std dev formula here? #Do you need to print the calculated values in new file? }