Vjian,
I think you're the victim of a misunderstanding. :)
> [root@xiao test]#perl mylog.pl > mylog.pl.result
The above gives me the idea that you're expecting the output of
"syslog('priority', 'message')" to be printed to standard out.
Such turns out not to be the case, though.
Sys::Syslog is
Hi!!
I'm sorry for the question...
OS of my computer is Redhat6.0, all setting is default.
Below is my program(mylog.pl):
**
#! /usr/bin/perl
use Sys::Syslog;
openlog('MYPROG', 'cons,pid', 'user') || warn "openlog() failed.\n";