in reply to Alarm In Perl

Your alarm is set in the thread. The thread finishes before the alarm is triggered, therefore the alarm is not triggered. Where's the problem?