If this is meant to be a long-running background script, perhaps you should implement it as a Windows service using Win32::Daemon. Once your app is registered with Windows as a Service, it will receive a ServiceStop() request during shutdown, which you then handle appropriately.
In reply to Re: Problem with script not terminating under Windows XP
by radiantmatrix
in thread Problem with script not terminating under Windows XP
by biochris
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |