http://www.perlmonks.org?node_id=58726


in reply to apache errorlog

You might want to read up on Apache::ParseLog, which handles the log file parsing more robustly than your example. It automatically reads httpd.conf to find out the format of the log file.