in reply to How to set timer in perl

No, we can't help you, not without you showing us exactly what you tried. What, precisely, did you do with alarm, what, exactly, did you expect to happen, and how did that differ from what happened?