Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
How to compare hash values to array values in Perlby To_Bz (Novice) |
on May 14, 2014 at 04:21 UTC ( [id://1085973]=perlquestion: print w/replies, xml ) | Need Help?? |
To_Bz has asked for the wisdom of the Perl Monks concerning the following question:
values.txt looks like this:
Then, I want to compare the second column of table.txt with the first column of values.txt. So, if they have the same number, for instance 3346, the script should return xanmn_chr09_0114-xanmn_chr09_0114 because xanmn_chr09_0114-xanmn_chr09_0114 corresponds to 3346. This is my script:
Back to
Seekers of Perl Wisdom
|
|