#!./perl -w
BEGIN {
chdir 't' if -d 't';
}
use Config;
require "test.pl";
my $file = "crlf$$.dat";
END {
}
my $text;
SKIP:
{
if $ENV{PERL_CORE_MINITEST};
eval 'PerlIO::scalar';
local $/ = "xxx";
local $_ = <$fh>;
$/ = "\n";
}
# binmode :crlf should not cumulate.
# Try it first once and then twice so that even UNIXy boxes
# get to exercise this, for DOSish boxes even once is enough.
# Try also pushing :utf8 first so that there are other layers
# in between (this should not matter: CRLF layers still should
# not accumulate).
# require PerlIO; print PerlIO::get_layers(FOO), "\n";
# require PerlIO; print PerlIO::get_layers(FOO), "\n";
"\n";
}
}
}
else {
}
sub count_chars {
my $seen = 0;
return $seen;
}