Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: correlation between two inputt filesby choroba (Cardinal) |
on Apr 27, 2012 at 12:36 UTC ( [id://967614]=note: print w/replies, xml ) | Need Help?? |
This is how I would proceed: Create a hash. The keys will be the reaction numbers. The values will be hash references with two keys: 'reactants' and 'products'. The values will be hash references again, use reactants and products respectively as keys. The values can stay undefined. After the hashes are filled, just go over the keys and print out all the tuples in nested loops.
In Section
Seekers of Perl Wisdom
|
|