title: How can I instantly kill a Perl thread without killing the entire program?
body: <p>When I use <code>exit</code> or <code>die</code>, it kills the entire program.</p>
  
  <pre><code>foreach my $t (threads-&gt;list())
  {
      $t-&gt;exit;
      $count++;
  }
  
  Usage: threads-&gt;exit(status) at main.pl line 265
  Perl exited with active threads:
          9 running and unjoined
          0 finished and unjoined
          0 running and detached
  </code></pre>
  
  <p>Any ideas?</p>