Help for this page

Select Code to Download


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