Perl Monk, Perl Meditation | |
PerlMonks |
Re: MOLECULAR WEIGHT SUMby kevbot (Vicar) |
on Mar 20, 2016 at 21:54 UTC ( [id://1158381]=note: print w/replies, xml ) | Need Help?? |
Hello mbgbioinfo, You are not using the proper key when looking up the MW. Change this:$sum += $MWs{ "$AA(@AA)" }; to this:$sum += $MWs{ $AA }; Now, when you press enter you will not get the error messages. When you press Ctrl+D you will see the calculated MW.
In Section
Seekers of Perl Wisdom
|
|