Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: match search string with column header, do some filtering with matched column, print lines/rows that match filter criteria

by Corion (Patriarch)
on Jul 26, 2012 at 20:54 UTC ( [id://983935]=note: print w/replies, xml ) Need Help??


in reply to match search string with column header, do some filtering with matched column, print lines/rows that match filter criteria

What part of the replies you got to Comparing a Hash key with a variable (if statement) have you applied?

Also, if this is all you have problems with:

My problem: If the values in col 'a' are <= .03, I need to print the entire row of the input file to the output file, not just the value from the column I am working with. Any help with this issue would be much appreciated. Thanks.

... why do you post the large program which has very little to do with your problem? Reduce your program, for example by hardcoding the filters and filter conditions.

Also, you might want to look at your print statement and just print out all you want instead of only printing the matched cell.

  • Comment on Re: match search string with column header, do some filtering with matched column, print lines/rows that match filter criteria
  • Download Code

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (5)
As of 2024-04-25 11:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found