in reply to perl daemon

On Win32 you can use srvany.exe from the Microsoft resource kit to run your perl program as a service. For a detailed explanation see
http://www.perlguy.com/articles/nt_service.html