I'm new at perl so please bare with this potential stupid question.
I'm writing (for practice) a simple log analyzer
Parsing and breaking down apache's access_log is no problem, but where I'm stuck is trying to work with mutiple logs (I use logrotate to keep log file sizes down)
I'm currently using:
$data_file="/open(DAT, $data_file) || die("Could not open file!"
;
@data=<DAT>;
close(DAT);
and everything's fine, right up until I try adding access_log.1, access_log.2 to the mix.
any suggestions?
I'm writing (for practice) a simple log analyzer
Parsing and breaking down apache's access_log is no problem, but where I'm stuck is trying to work with mutiple logs (I use logrotate to keep log file sizes down)
I'm currently using:
$data_file="/open(DAT, $data_file) || die("Could not open file!"
@data=<DAT>;
close(DAT);
and everything's fine, right up until I try adding access_log.1, access_log.2 to the mix.
any suggestions?