in reply to Win32::Daemon et al

Ideally you should install the module properly, using Make, or ppm.

But below is a dodgey hack to use a module, if you're not in a position to install it properly

Assuming your module is sitting on your desktop, create a folder named "Win32", then place the daemon.pm file inside it.

Then add this to your test script:
BEGIN { push @INC, 'C:/documents and settings/user/desktop'; } ### and later use Win32::Daemon; # etc etc # etc
Update Just noticed that if your current location was the desktop, Perl conveniently searches it for the module you're trying to use. i.e. You only need to add the path of the module to @INC if you're going to call the script from another location. Eg.  C:\temp>

Replies are listed 'Best First'.
Re^2: Win32::Daemon et al
by OzVegan (Acolyte) on Sep 14, 2009 at 04:00 UTC
    There was some compatibility issue with the module so I went with SRVANY.exe. Set it all up and nothing seems to be working when the service is running. Bloody Windoze!!! I'll work it out.

    Thanks guys.