【发布时间】:2012-04-08 14:10:57
【问题描述】:
我试图在 perl 中连接 3 个字符串,但我的行为很奇怪。数据只是之前在脚本中写入了一个文件,我正在尝试向数据添加两列。
这是我的代码及其行为
print "phylipId is $phylipId\n";
print "Tree is $tree\n";
print "Line is $line\n";
my $string = join "\t", $phylipId, $tree, $line;
print "Concatenated is $string\n";
给我这个输出
phylipId is 4
Tree is (138,((139,141),140));
Line is 000931 17.0 1.0 0.135 no 1044 646918204
Concaten000931s 17.0 1.08,((10.1351),no0)); 1044 646918204
当我使用 .操作员。 任何帮助将不胜感激
【问题讨论】:
标签: string perl concatenation