diff options
author | jeff <jeff> | 2007-04-03 19:37:11 +0000 |
---|---|---|
committer | jeff <jeff> | 2007-04-03 19:37:11 +0000 |
commit | c00ac2cc3c556b2d0ebeb44a19ecc43e24476b39 (patch) | |
tree | 21297ecd979c2d027745cadb8d39e663f8a27653 | |
parent | 0730b5c85dc65683d552c1ee49035b75f5913169 (diff) |
correct handling of non-unix line termination
-rw-r--r-- | httemplate/misc/cust_main_note-import.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/misc/cust_main_note-import.cgi b/httemplate/misc/cust_main_note-import.cgi index 690ca783d..b93c5c1cc 100644 --- a/httemplate/misc/cust_main_note-import.cgi +++ b/httemplate/misc/cust_main_note-import.cgi @@ -122,7 +122,7 @@ % 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(); |