in reply to read a file twice...
Of course, your file layout may be more complex.while(<FILE>) { @array = split ':'; if (@array[1] > $max) #number we read in is greater than current max { $max = $array[1]; $max_text = $array[0]; } #similarly for min }
|
|---|