Can somebody please tell me how to fire-and-forget a process in Perl? I\'ve already looked at ruby: how to fire and forget a subprocess? for doing the same in Ruby.
If you want the watchdog "child" process to go away when the "parent" process exits then you don't really want the parent process to "fire and forget" the child process. You either need to fork (as described by brian d foy) or pass the PID of the parent to the child (so the latter can poll the process table - not recommended).