title: How can I specify timeout limit for Perl system call?
body: <p>Sometimes my system call goes into a never ending state. To, avoid that I want to be able to break out of the call after a specified amount of time.</p>
  
  <p>Is there a way to specify a timeout limit to <a href="http://perldoc.perl.org/functions/system.html" rel="noreferrer"><code>system</code></a>?</p>
  
  <pre><code>system("command", "arg1", "arg2", "arg3");
  </code></pre>
  
  <p>I want the timeout to be implemented from within Perl code for portability, and not using some OS specific functions like ulimit.</p>