Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re: Parsing for [] in a file

by aaron_baugher (Curate)
on Nov 17, 2011 at 19:00 UTC ( #938666=note: print w/ replies, xml ) Need Help??


in reply to Parsing for [] in a file

Open File1, read it line by line, parsing out the variables and saving them as the keys of a hash, with true values (like 1).

Open File2, read it line by line, parsing out the variable at the beginning of the line, checking to see if that variable exists as a key in your hash, and printing the line if it does.

Aaron B.
My Woefully Neglected Blog, where I occasionally mention Perl.


Comment on Re: Parsing for [] in a file

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (6)
As of 2016-02-13 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (417 votes), past polls