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


in reply to Time Out eval

Have you taken a look at the alarm() function? I think that will do what you need however I have not used it before.