If I read your code correctly, you only need this:
foreach (@data_in) { chomp; $strSpec_protein_hash{$_} = $goodProteins_hash{$_}; }
This is exactly what hashes are good at and your loop is in a way removing that advantage again ;-)
In reply to Re: search and extract from a large hash
by jethro
in thread search and extract from a large hash
by reubs85
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |