title: Perl GetOptions Function
body: <p>My Perl Script retrieves the argument in the below way.   Have Getoptions function to retrieve the command line arguments. </p>
  
  <pre><code>./test.pl  -mode report -writeid 12 13 23......
  </code></pre>
  
  <blockquote>
  <pre><code>$rc=GetOptions( 'mode=s' =&gt; \$cmdParams{mode}
             ,'writeid:i{1,}' =&gt; \@writeid
             ,'h|?|help'  =&gt; \$help
            );
  </code></pre>
  </blockquote>
  
  <p>The problem is when i have alphanumeric characters in the writeid option it's not failing.  Writeid is defined as integer ( i{1,}) and it can receive 1 to many values.  It doesn't fail when i have alphanumeric character in the second value. 
     ./test.pl  -mode report -writeid 12 A3 23......</p>
  
  <p>What is the workaround i can do?</p>