Make the table importer resistant to non-UNIX line breaks:
# Read in entire file content at once
my $file_content = do { local $/; <$FILE> };
# close filehandle
close $FILE or croak "Could't close '$file': $!";
# Convert to unix-style line breaks
if ( $convert ) {
$file_content =~ s/\r\n?/\n/g;
}
Make the table importer resistant to non-UNIX line breaks: