title: How can I increase gateway timeout for one PERL script?
body: <p>I have a PERL script in cgi-bin and delivered via apache that creates a PDF file from a set of XML files. Long story short... it takes a little while and my browser reports a <code>504 Gateway Time-out</code> error before it completes.</p>
  
  <p>I don't want to increase the default timeout in my apache config, but I do want to increase the timeout for the sake of this one script which is accessible only by admins who are properly authenticated.</p>
  
  <p><strong>Is there a command I can add to the PERL cgi script that will increase the timeout?</strong></p>
  
  <p>In PHP there are the commands <code>set_time_limit($n)</code> and <code>ini_set('max_execution_time', $n);</code> I'm looking for the PERL equivalent if there is one.</p>