To join strings there are several options
for printing your best bet is to send a comma seperated list, as that
will have fewer syscalls (as per llama book advice).
EX:
print "Hello", " World", $scalar_that_will_be_attached_to_end,
@array_that_will_be_flattened;
There's a module called DBD::CSV, which will probably solve your problem. CPAN is
good at that :). You can tell it what the field separator is and then you'll be
able to manipulate it however you want with the DBI. I believe you'll need to
install the bundle, found here:
http://search.cpan.org/