in reply to Re: How to set timer in perl
in thread How to set timer in perl

The documented example for alarm has a "\n" at the end of the die string, but also checks $@ with 'eq', not a regex like you are. Just thought I would point that out.