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 }
In reply to Re: read a file twice...
by thor
in thread read a file twice...
by gdnew
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |