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";
+ if ($ENV{PERL_CORE_MINITEST}) {
+ print "1..0 # Skip: no dynamic loading on miniperl, no Encode\n";
exit 0;
}
}
+use Encode;
use strict;
use Test::More;
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";
+ if ($ENV{PERL_CORE_MINITEST}) {
+ print "1..0 # Skip: no dynamic loading on miniperl, 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";
+ if ($ENV{PERL_CORE_MINITEST}) {
+ print "1..0 # Skip: no dynamic loading on miniperl, 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";
+ if ($ENV{PERL_CORE_MINITEST}) {
+ print "1..0 # Skip: no dynamic loading on miniperl, 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";
+ if ($ENV{PERL_CORE_MINITEST}) {
+ print "1..0 # Skip: no dynamic loading on miniperl, no Encode\n";
exit 0;
}
$| = 1;