in reply to Kill a process if it hangs

Sysinternals has some command line tools for Win9x as well as WinNT/2000 of special interest is the PStools which is the best set of command line Win32 Process tools i've come across(the Pslist tool may be of interest to your problem set). Obviously this is not a Pure Perl solution so you'd need to make system calls or use backticks, but I've had success with these tools.