use Unix::Syslog qw/:subs :macros/; openlog($0, LOG_PID, LOG_USER); syslog(LOG_NOTICE, 'blah blah: %d', time()); closelog();