- or download this
IO::Handle->format_line_break_characters( [STR] ) $:
IO::Handle->input_record_separator( [STR] ) $/
- or download this
IO::Handle->input_record_separator( ["\r"] );
- or download this
#!/usr/local/bin/perl
use strict;
...
my $columns = $csv->getline($io);
print Data::Dumper->Dump([$columns],['csv']);
exit 0;
- or download this
cat mac.txt | perl -e '$/="\r"; while(<>){$_=~s/\015$/\n/; print $_;}'