我想在perl中连接3个字符串,我越来越奇怪的行为。数据刚刚写入到脚本中的一个文件中,我试图向数据添加两列。Perl字符串连接覆盖字符串
这里是我的代码,而且其行为
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
当我用这也发生了。运营商。 任何帮助,将不胜感激
是啊,这就是问题所在。我使用在Windows中创建的模板文件生成树文件。我为他们修复了行结尾,现在它可以工作,谢谢 – avs3323 2012-03-25 16:18:16