It's because of the eval. Throw this in after you declare $h:

local $SIG{ALRM};
And see what happens.

In reply to Re: trying to get timeout to work by halfcountplus
in thread trying to get timeout to work by Skeeve

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":