title: grep multiple pattern in perl array at a time
body: <p>Below is the code which actually finds a pattern in a perl array.</p>
  
  <pre><code> my $isAvailable = grep { $_-&gt;[0] eq '12345' } {$filteredTableEntriesMap{$REPORT_PART1}} ;
  </code></pre>
  
  <p>But i would like to search for two patterns in two indexes at a time </p>
  
  <pre><code> my $isWiuAvailable = grep { $_-&gt;[0] eq '12345' }     @{$filteredTableEntriesMap{$REPORT_PART1}} ;
   my $isBsAvailable  = grep { $_-&gt;[1] eq '6789' } @{$filteredTableEntriesMap{$REPORT_PART1}} ;
  </code></pre>
  
  <p>This is how the map is represented</p>
  
  <pre><code> $VAR1 = {
        'REPORT PART2' =&gt; [],
        'REPORT PART1' =&gt; [
                                 [
                                   '12345',
                                   '6789',                         
                                 ],
                                 [
                                   '343435',
                                   '315',
                                 ],
                                 [
                                   '00103',
                                   '000315',
  
                                 ],
                          ]   
  </code></pre>
  
  <p>And i would want to match an array which has these two entries in index 1 and index 2</p>
  
  <p>Thanks</p>