) {
($src, $dst)= split/,/;
$srchash{$src}= 1;
$dsthash{$dst}= 1;
}
close(LOG);
# Transfer them from the hashes to the arrays
@sources= sort( keys(%srchash) );
@dests= sort( keys(%dsthash) );
}
sub get_input_file {
# Returns the file name of yesterday's whodo log
my $t = time() - 24*60*60;
my ($mday,$mon,$year) = ( localtime($t) )[3..5];
$LOGPATH . sprintf("%d%02d%02d.csv",$year+1900,$mon+1,$mday);
}
sub write_html {
print <Analyse traffic sources or destinations
Analyse traffic sources or destinations
OR
TAIL
}