Yes, but it will happen in the requested 3 seconds. If you want a non-fatal handler:

local $SIG{ALRM} = sub { print STDERR "hey\n" };
Ie, there is a difference in behaviour between that and set_sig_handler(). Whoops, no there isn't, but adding STDERR reporting does shed some light on when the alarm fires...

In reply to Re^3: 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":