in reply to How to write to log files?

I use Unix::syslog myself. Has the advantage of direct writing to the syslog, so it gets forwarded to a remote host if your machine is configured to do so. Works well and is easy to use. Its become part of my standard install.