in reply to Output problems

One of the reasons to use Perl is that other people have done a lot of the work for you (note I am not speaking about getting your script fixed here or on SO!)

So don't reinvent the wheel: There are lots of modules for interacting with the syslog on CPAN

You might like to start with Parse-Syslog-Line.

Hope this helps


The way forward always starts with a minimal test.