Help for this page

Select Code to Download


  1. or download this
    package PerlIO::via::AnyCRLF;    # save as PerlIO/via/AnyCRLF.pm
    
    ...
        return $len > 0 ? $buf : undef;
    }
    1;
    
  2. or download this
    #!/usr/bin/perl
    use strict;
    use warnings;
    ...
    open my $f, "<:crlf:via(AnyCRLF)", "le.txt" or die $!;
    
    print while <$f>;