in reply to Re: Numeric values required in Unix::Syslog?
in thread Numeric values required in Unix::Syslog?

As above; barewords not allowed:
# Open syslog channel openlog('my-program', LOG_PID, 3);
[me@mgmt test-project (master)]# ./my-program.pl Bareword "LOG_PID" not allowed while "strict subs" in use at ./my-prog +ram.pl line 65.

Replies are listed 'Best First'.
Re^3: Numeric values required in Unix::Syslog?
by Anonymous Monk on Jan 20, 2015 at 11:31 UTC
    use Unix::Syslog qw( :macros )

    Also, you might want to read how Exporter works

      Thanks that was it, I didn't include :macros as I thought I didn't need it. Silly me. Thanks for your help though and I will read about Exporter as you suggest.