#!/usr/bin/perl use strict; use warnings; for my $file ( @ARGV ) { my ( $lf, $crlf ) = ( 0 ) x 2; open my $fh, '<', $file or die "open $file: $!\n"; local $_ = " "; while ( read $fh, $_, 65536, 1 ) { $lf += @{ [ /(?