This will give you only the avarage of the number in the right column, but you can easily do that for the time and date (write a timeAvarage function), I'll leave that for you.$i = 0, $total = 0; while ($line = <FILE>) { chomp $line; if ($line =~ /"([\d\/]+)\s([\d:.]+)"\s+"([\d.]+)"/) { total += $3; $i++; } } $avarage = $total/$i;
In reply to Re: Formating Text Files
by hotshot
in thread Formating Text Files
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |