title: How can I check if a Perl array contains a particular value?
body: <p>I am trying to figure out a way of checking for the existence of a value in an array without iterating through the array.</p>
  
  <p>I am reading a file for a parameter.  I have a long list of parameters I do not want to deal with. I placed these unwanted parameters in an array <code>@badparams</code>.</p>
  
  <p>I want to read a new parameter and if it does not exist in <code>@badparams</code>, process it. If it does exist in <code>@badparams</code>, go to the next read.</p>