Hi,

I routinely generate rows of tab-separated data like this;

my @array = ( "boris", "natasha", "rocky", "bullwinkle");
print join "\t", @array, "\n";

However this code inserts an extra tab between bullwinkle and the newline
character.

So when it is important I do this instead:
print join "\t", @array;
print "\n";

I suppose you could put both statements on a single line.  Is there a
simpler/faster way to generate this output:
boris\tnatasha\trocky\tbullwinkle\n?

Thanks,

-- Marc

Reply via email to