title: how to get POST values in perl
body: <p>I am trying to customize a script and need to get a POST value from a form using perl. 
  I have no background of perl but this is a fairly simple thing so I guess it should not be hard.</p>
  
  <p>This is the php version of the code I would like to have in PERL:</p>
  
  <pre><code>&lt;?php
  $download = ($_POST['dl']) ? '1' : '0';
  ?&gt;
  </code></pre>
  
  <p>I know this may not be at all related to the PERL version but it could help I guess clarifying what exactly I am looking to do.</p>