foreach (@array) {chomp; print "\n $_\n"; #sucessful print $value = $glycan_type{"$_"}; print "value: $value\n"; #nothing returned };