mail.pl web.pl dc.pl
These three files are very similar. The function is to drag the logs from the whole data set of a specific ip. One thing can be reused is the perl code of reading file by entry, instead of by line.