title: Accessing multiple <select>-ed parameters with Perl CGI
body: <p>I am using the Perl <a href="https://metacpan.org/module/CGI" rel="nofollow">CGI</a> module. If I have HTML like this</p>
  
  <pre><code>&lt;select multiple name="FILTER_SITE"&gt;
    &lt;option&gt;1&lt;/option&gt;
    &lt;option&gt;2&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>and submit my form I can get something like this in the URL: 
  <code>[..] FILTER_SITE=1&amp;FILTER_SITE=2</code></p>
  
  <p>Perl's <code>my $FILTER_SITE   = $cgi-&gt;param('FILTER_SITE');</code> wil capture only the first instance. </p>
  
  <p>How can I make use of both (in this case)? Hack it and parse the referrer myself and add them to an array is my first idea but it'd be a bit messy, then again I'm hardly versed in CGI.pm or Perl.</p>
  
  <p>With Data::Dumper, interestingly</p>
  
  <p><code>print "&lt;pre&gt;".Dumper($cgi-&gt;param('FILTER_SITE')) . "&lt;/pre&gt;";</code></p>
  
  <pre><code>$VAR1 = '1';
  $VAR2 = '2';
  </code></pre>