http://www.perlmonks.org?node_id=455576


in reply to Putting a timeout into a script

or alarm (as it's been months since I've seen the perldoc.com site respond).