in reply to Simplest way to match/filter 2d array of values to search in perl

If you need to test if the 2nd column is greater than 4, then you'll have a term in your grep that looks like
$_->[1] > 4
and for the 4th entry greater than 3
$_->[3] > 3
What stumbling blocks have you hit? The structural difference from your posted code is you will only require one grep.

#11929 First ask yourself `How would I do this without a computer?' Then have the computer do it the same way.

Replies are listed 'Best First'.
Re: Simplest way to match/filter 2d array of values to search in perl
by reaper9187 (Scribe) on Jul 03, 2014 at 20:47 UTC
    Thank you !! That did it trick. I feel stupid now that I didn't think of it earlier.