我得到以下输出:
"I"=> ["Isoleucine","Ile",["ATT,ATC,ATA"]];
"L"=> ["Leucine","Leu",["TTA,TTG,CTT,CTC,CTA,CTG"]];
"K"=> ["Lysine","Lys",["AAA,AAG"]];
当我使用代码时
foreach(@genetic_codes){
chomp;
my @genetic_codes = split(':',$_);
if(@genetic_codes != 5){
# error on this line
next;
}
my $group = join(',',split(/,\s*/,$genetic_codes[4]));
print "$genetic_codes[2]=> [$genetic_codes[0],$genetic_codes[1],[$group]];\n";
}
我怎样才能摆脱我的钥匙周围的双引号?