It is impossible to debug your non-running code snippet.
In reply to Re: Threaded Perl script not responding by BrowserUk in thread Threaded Perl script not responding by Anonymous Monk