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 ... }
In reply to Re: Converting a text file to a csv file
by bart
in thread Converting a text file to a csv file
by $new_guy
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |