How do I run a Perl script as a Windows NT Service?
You can run your Perl scripts as Windows NT Services via a program called srvany.exe, which comes with the Windows NT Resource Kit. Follow the instructions in srvany.wri for installing and configuring srvany.exe. When configuring service’s registry settings, use the full path to perl.exe for the Application value and the path to the desired Perl script as the AppParameters value.