Sure. "If it hurts, stop doing it."
Windows has no concept of daemons, services are the closest thing to a Unix deamon. So maybe you want a service that you can control from your Perl script.
A second problem with Windows is that it does not know the brilliant concept of "fork() and exec()", but instead has a ridiculously large and ever increasing number of functions and macros that wrap each other and finally start a new process with a huge load of mostly useless parameters. Short, fork() just does not work on Windows, even if newer perl versions have a pretty neat emulation. But it's just an emulation and things go wrong amazingly fast as soon as you expect it to do more than just creating a new instance of your Perl script.
Alexander
--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
|