in reply to How to use timeout in perl

I think IPC::Run could help you here, it supports calling external commands with timeouts.