Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

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

by kennethk (Abbot)
on Jul 03, 2014 at 20:33 UTC ( [id://1092208]=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1092208]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2024-03-29 12:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found