title: Getting options into a Perl program
body: <p>I've been googling for some time now and strangely didn't find anything that answers my question.</p>
  
  <p>I want to pass -n as an option to the program, where n is an integer.</p>
  
  <p>This is what I have:</p>
  
  <pre><code>if($ARGV[0] eq "-A_NUMBER")
  </code></pre>
  
  <p>Is there some type of wildcard I can use for this? So the condition is true for any minus sign followed by any integer (or character)?</p>