in reply to csv to flat-file
Why not just use a substitution to convert commas to spaces:
$line =~ s/,/ /g;
Alternatively split the fields up and join them back together:
or more compactly but less readablymy @tmp_array = split(',',$line); $line = join(' ',@tmp_array);
$line = join(' ', split(',',$line));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: csv to flat-file
by jreades (Friar) on Nov 28, 2002 at 09:20 UTC | |
|
Re: Re: csv to flat-file
by Cockneyphil (Acolyte) on Nov 28, 2002 at 09:21 UTC | |
by Bilbo (Pilgrim) on Nov 28, 2002 at 09:35 UTC |