我想在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