title: How to pass multiple parameters for the same commandline argument?
body: <p>Scenario: I need to pass names of multiple tv shows to a script:
  Eg. <code>./script -a "Homeworld" -a "Supernatural"</code></p>
  
  <p>I'm using Getopt::Long::Configure to get the options.</p>
  
  <pre><code>sub ArgParser
  {
      my ($help,$addshow,$delshow,$checkshow,$listshows) = ();
      GetOptions ('help|h' =&gt; \$help,             
                  'add|a=s' =&gt; \$addshow,             
                  );
      if ($help)
      {
          HelpPrint;      
      }
      elsif ($addshow)
      {
          say $addshow;       
      }   
      else 
      {        
          HelpPrint("Invalid option or no options specified!");
      }
      exit;
  }
  
  ArgParser;
  </code></pre>
  
  <p>Currently, only the last specified argument is being received by the script. How can I detect whether multiple parameters to the same argument are being passed on the command line? </p>
  
  <p>@ARGV does contain all arguments, so how can I use them?</p>