in reply to Re: Regex with malformed CSV filesin thread Regex with malformed CSV files
while(!($csv->parse($line)) || $csv->fields < $COLUMNS) { $line =~ s/\r//g; $line =~ s/\n$/=0D=0A/; $line .= <IN>; } [download]