in reply to Working with signals / $SIG{ALRM}

What does not work? When I run your code, I get a "hi!" alarm every two seconds, as I'd expect.