|
|
| Just another Perl shrine | |
| PerlMonks |
Help with pushing into a hashby jemswira (Novice) |
| on Aug 29, 2012 at 16:55 UTC ( #990508=perlquestion: print w/ replies, xml ) | Need Help?? |
|
jemswira has asked for the
wisdom of the Perl Monks concerning the following question:
Hi there monks. I'm trying to combine two databases into one for my computational bio project. The first database (Test) looks something like this:
It's just a small part of it. The .{6} before the ORFNAMES is the accession numbers. Next I have this sort of format in Test2.
The format I need in the end is this:
Since the first database test was going to be much larger than the second, I wanted to make it into an array list with the accession numbers and names, then go down the list of accession numbers in Test2 and print them out. Like so:
The commented parts were my print testing. However I just can't seem to get the print at line 44 to print what I want. the commented print at line 23 returns blank, but the commented print at line 19 prints that both are correct. Also, if I use a print %data, it will return values. Am I checking something wrongly? Thanks monks!
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||||||||||||||||||