title: Perl: if ( element in list )
body: <p>I'm looking for presence of an element in a list.  </p>
  
  <p>In Python there is an <code>in</code> keyword and I would do something like:</p>
  
  <pre><code>if element in list:
      doTask
  </code></pre>
  
  <p>Is there something equivalent in Perl without having to manually iterate through the entire list?</p>