in reply to Re: parse array to replace specific spaces with pipes
in thread parse array to replace specific spaces with pipes

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

Replies are listed 'Best First'.
Re^3: parse array to replace specific spaces with pipes
by neurotoxx (Novice) on Jul 10, 2009 at 16:30 UTC

    Join is very good. :) Thanks Jethro and Johngg