Help for this page
my $ref_time = time(); my $ref_delta = $serverRef->{ScanErrlogLastDays}*24*3600; ... } # all done, and you didn't miss the first record
my $seeking = 1; my $ref_time = time(); ... # put all the stuff from the second while loop here }