Help for this page

Select Code to Download


  1. or download this
    $CHUNK_SIZE = 4096;
    
    ...
    print @lines_and_endings;
    
    @just_lines = grep { ! /^\r\n?|\n$/ } @lines_and_endings;