GetOpt Long processing similar input names
<p>I'm running a perl script with a lot of input options, one of them being:</p>

<pre><code>        'errorcode=s{1,}'  =&gt; \@ecodes,
</code></pre>

<p>I have a die at the end of the GetOptions if anything entered doesn't match the input.  However if I input '--ecode 500' the program runs.  </p>

<p>Why isn't the script dying?  If I try something else like '--testing 123' it does die.</p>