Add use strict; to your snippet to see the cause of your problem.
In reply to Re: Win32 signals between parent/child by BrowserUk in thread Win32 signals between parent/child by jrsimmon