Win32::Daemon is working for me, but I'd like to use Win32::Daemon::Simple because otherwise there's a lot of skeleton code to write and, well, it's just simpler :-)
Unfortuantely, it's throwing up some errors as soon as I try to use it:
The Win32::Daemon::Simple code is using a variable $HKLM (when attempting to talk to the Windows registry) but it's not defined in Simple.pm.C:\tmp>perl use Win32::Daemon; use Win32::Daemon::Simple; Global symbol "$HKLM" requires explicit package name at C:/APPS/Perl/s +ite/lib/Win32/Daemon/Simple.pm line 66. Global symbol "$HKLM" requires explicit package name at C:/APPS/Perl/s +ite/lib/Win32/Daemon/Simple.pm line 78. Global symbol "$HKLM" requires explicit package name at C:/APPS/Perl/s +ite/lib/Win32/Daemon/Simple.pm line 276. BEGIN not safe after errors--compilation aborted at C:/APPS/Perl/site/ +lib/Win32/Daemon/Simple.pm line 494. Compilation failed in require at - line 2. BEGIN failed--compilation aborted at - line 2.
Any ideas why this is fouling up? Where is this variable supposed to come from?
One obvious area for consideration is module incompatibilites, so here are the versions I'm using:
<fingers crossed...>Win32::Daemon $VERSION = 20030617; Win32::Daemon::Simple $VERSION = '0.2.6'; Win32::Registry $VERSION = '0.07';
--
.sig : File not found.
In reply to Re: Turn a perl script into a Win32 Service
by wol
in thread Turn a perl script into a Win32 Service
by Limbic~Region
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |