thank you. this is great, I thought of using a subroutine but was getting it wrong. But your script isn't working. To me it looks as if you are only passing the $prophage to the subroutine, but you must also pass the hash? I tried editing it as follows. But I am recieving an error about passing a string to a hash reference.
my ($prophageB, $hostB, $taxidB) = getTaxId($columns[0],%tax2loc);In reply to Re^2: grep keys in hash and retrieve values
by AWallBuilder
in thread grep keys in hash and retrieve values
by AWallBuilder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |