P is for Practical | |
PerlMonks |
Re^2: how to compare two hashes with perl?by FluffyBunny (Acolyte) |
on Nov 04, 2009 at 21:01 UTC ( [id://805060]=note: print w/replies, xml ) | Need Help?? |
Thank you for your reply. IDs might not be in the same order that's why I'm looking for a certain ID I have in file 1 to match with any ID in file 2... This is what I wanted to check basically. 1)Check ID names. 2)If they match, and the sequences match, do not print. 3)If they match, but the sequences do not match, print both ID and the sequences from each file. 4)If they dont match, print both ID and the sequences from each file. I'm a newbie, and I'm trying to understand hash.. it's just confusing and I'm not exactly sure how my file gets stored in hash. I hear hash is random when it prints output and I want my ID doesn't get mixed with wrong sequences (an ID uniquely corresponds to each sequence). I updated the original post with my output and input files. Thank you!
In Section
Seekers of Perl Wisdom
|
|