in reply to Re: Sys::Syslog in OOP Module
in thread Sys::Syslog in OOP Module
> Does your non-module use of syslog work on this same machine? What platform is it?
Many thanks for your continued assistance -- I'm at a loss...
But to o answer your question: Yes, it works as expected in non-oop-modules ( and I've been using Sys::Syslog in scripts for quite some time ), even on the same machine - which is a linux platform ( gentoo ).
While waiting for further assistance, I noticed that I had my:
use Sys::Syslog qw( :DEFAULT setlogsock );
_outside_ of the BEGIN block... so I figured that I should put that into a require into the BEGIN, because the BEGIN happens first:
BEGIN { require Sys::Syslog; Sys::Syslog->import( 'setlogsock', 'openlog', 'syslog', 'closelo +g' ); setlogsock( 'unix' ); openlog( 'IPScan', 'pid', 'local0' ); }
But that didn't appear to make a difference...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sys::Syslog in OOP Module
by Zarathustra (Beadle) on Aug 24, 2006 at 04:53 UTC |