mptrsen / Orthograph

Orthology prediction using a graph-based, reciprocal approach with profile hidden Markov models
GNU General Public License v3.0
32 stars 5 forks source link

Old Mac linebreaks #24

Closed mptrsen closed 4 years ago

mptrsen commented 8 years ago

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;
}
mptrsen commented 4 years ago

Fixed with #4993b7c