in reply to Tk related -- timed event and $SIG{ALRM}

Take a look at
perldoc Tk::after
Maybe that's what you want.