io/crlf.t didn't work in Tru64, $^X was "./perl", used
the same 'eval q/use .../' trick everywhere.)
p4raw-id: //depot/perl@18622
SKIP:
{
- if ($^X =~ /\bminiperl\b/) { skip(q/miniperl can't load PerlIO layers/) }
+ eval 'use PerlIO::scalar';
+ skip(q/miniperl cannnot load PerlIO::scalar/)
+ if $@ =~ /dynamic loading not available/;
my $fcontents = join "", map {"$_\r\n"} "a".."zzz";
open my $fh, "<:crlf", \$fcontents;
local $/ = "xxx";
print "1..0 # Skip: PerlIO required\n";
exit 0;
}
+ eval 'use Encode';
+ if ($@ =~ /dynamic loading not available/) {
+ print "1..0 # Skip: no dynamic loading, no Encode\n";
+ exit 0;
+ }
$| = 1;
}
print "1..0 # Skip: PerlIO required\n";
exit 0;
}
+ eval 'use Encode';
+ if ($@ =~ /dynamic loading not available/) {
+ print "1..0 # Skip: no dynamic loading, no Encode\n";
+ exit 0;
+ }
$| = 1;
}
print "1..0 # Skip: PerlIO required\n";
exit 0;
}
+ eval 'use Encode';
+ if ($@ =~ /dynamic loading not available/) {
+ print "1..0 # Skip: no dynamic loading, no Encode\n";
+ exit 0;
+ }
$| = 1;
}
print "1..0 # Skip: PerlIO required\n";
exit 0;
}
+ eval 'use Encode';
+ if ($@ =~ /dynamic loading not available/) {
+ print "1..0 # Skip: no dynamic loading, no Encode\n";
+ exit 0;
+ }
$| = 1;
}