Thanks,
That is precisely what I want, except when I run it, it does not get past this line.
next unless /^(\S+) \s+\S+\s+\S+\s+ (\S+)$/;
The lines don't match this, and so it skips the loop.
This is very strange, considering you were able to get the output. Might it be a problem with how I sent the data to this website? Did the data format get changed?
Yours,
Chrisantha