print OUTFILE '|',join('|',@row),"|\n";
You could let join do all the work.
print OUTFILE join '|', '', @row, "\n";
I hope this is of interest.
Cheers,
JohnGG
In reply to Re^2: parse array to replace specific spaces with pipes
by johngg
in thread parse array to replace specific spaces with pipes
by neurotoxx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |