title: How can I run a system command in Perl asynchronously?
body: <p>I currently have a Perl script that runs an external command on the system, gathers the output, and performs some action based on what was returned.  Right now, here is how I run this (where $cmd is a string with the command setup):</p>
  
  <pre><code>@output = `$cmd`;
  </code></pre>
  
  <p>I'd like to change this so if the command hangs and does not return a value after so much time then I kill the command.  How would I go about running this asynchronously?</p>