in reply to Re: grep keys in hash and retrieve values
in thread grep keys in hash and retrieve values
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);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: grep keys in hash and retrieve values
by GrandFather (Saint) on Mar 16, 2012 at 12:35 UTC |