I am trying to concatenate 3 strings in perl, and I am getting weird behavior. The data was just written to a file previously in the script, and I am trying to add two columns to the data.
Here is my code and its behavior
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";
Gives me this output
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
This also happened when I used the . operator. Any help would be appreciated