correct handling of non-unix line termination
authorjeff <jeff>
Tue, 3 Apr 2007 19:37:11 +0000 (19:37 +0000)
committerjeff <jeff>
Tue, 3 Apr 2007 19:37:11 +0000 (19:37 +0000)
httemplate/misc/cust_main_note-import.cgi

index 690ca78..b93c5c1 100644 (file)
 %    my $line;
 %    my $row = 0;
 %    while ( defined($line=<$fh>) ) {
-%      chomp $line;
+%      $line =~ s/(\S*)\s*$/$1/;
 %      $line =~ s/^(.*)(#!).*/$1/;
 %
 %      $csv->parse($line) or die "can't parse line: " . $csv->error_input();