join() to the rescue
while (@row = $sth->fetchrow_array) { print OUTFILE '|',join('|',@row),"|\n"; }
In reply to Re: parse array to replace specific spaces with pipes
by jethro
in thread parse array to replace specific spaces with pipes
by neurotoxx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |