p4raw-id: //depot/perlio@15653
ok(print FOO 'a'.((('a' x 14).qq{\n}) x 2000) || close(FOO));
ok(open(FOO,"<:crlf",$file));
my $seen = 0;
+ my $cr = "\r";
while (<FOO>)
{
- $seen++ if (/\r/);
+ $seen += tr/[\015]//;
}
is($seen,0);
binmode(FOO);
$seen = 0;
while (<FOO>)
{
- $seen++ if (/\r/);
+ $seen += tr/[\015]//;
}
is($seen,2000);
ok(close(FOO));