LostWeekender has asked for the wisdom of the Perl Monks concerning the following question:
Hi. Why is it that when I retrieve a hash value from %fastas by using a string (gene name) to find the key, it works fine:
$sequence=$fastas{ENSG0000017672};
but when the same string is in a variable:
$sequence=$fastas{$gene_name};
... I get errors. Many thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: hash access with a variable
by MidLifeXis (Monsignor) on Aug 06, 2014 at 17:37 UTC | |
by LostWeekender (Novice) on Aug 06, 2014 at 17:57 UTC | |
by AppleFritter (Vicar) on Aug 06, 2014 at 18:16 UTC | |
by graff (Chancellor) on Aug 07, 2014 at 00:01 UTC | |
by Anonymous Monk on Aug 07, 2014 at 00:21 UTC | |
by Monk::Thomas (Friar) on Aug 07, 2014 at 09:33 UTC | |
|
Re: hash access with a variable
by ikegami (Patriarch) on Aug 06, 2014 at 17:51 UTC |