Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Numeric values required in Unix::Syslog?

by spoovy (Initiate)
on Jan 20, 2015 at 09:43 UTC ( [id://1113845]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1113845]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2024-04-19 06:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found