Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^3: Compare 2 Hashes w/ Multiple Variables

by Laurent_R (Parson)
on Dec 24, 2013 at 18:07 UTC ( #1068324=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Compare 2 Hashes w/ Multiple Variables
in thread Compare 2 Hashes w/ Multiple Variables

Well, sure, I fully appreciate your point, but, to start with, this is just a brief simple example, which would have to be adapted to the exact needs. My point was really to show the algorithm: store the content of one file in a hash and then read the second file and use the data stored before. Storing the data in the hash can be done in many many different ways (hash of arrays, hash of hashes, XML, CSV, fixed-length, etc.), I just chose a very simple way because this was not really the subject of the post (wghich was the algorithm to do the job).

Then, the OP said he just needed to print out metrics 1 to 4; merging the data before storing into the hash makes things as simple as they can be when it comes to print them out. Any decision to make things more complex would just complicate the explanation of what needs to be done and would be actually meaninglessly premature so long as you haven't seen any of the data.

And, BTW, I received an MP from the OP saying: "Thanks so much! It works just like I wanted!"


Comment on Re^3: Compare 2 Hashes w/ Multiple Variables

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (4)
As of 2014-12-22 04:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (110 votes), past polls