in reply to Converting a text file to a csv file
The "..." must be replaced with whatever you have to do to output the row to the CSV file, for example from the code supplied by suhailck in Re: Converting a text file to a csv file.open TXT, "<", $file) or die "Cannot open $file: $!"; while(<TXT>) { chomp; my @array = split ''; # 1 char per array item s/\s// foreach @array; # replace space with empty string ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Converting a text file to a csv file
by $new_guy (Acolyte) on Sep 28, 2010 at 10:24 UTC |