summaryrefslogtreecommitdiff
path: root/dist/Data-Dumper
diff options
context:
space:
mode:
authorFather Chrysostomos <sprout@cpan.org>2011-12-31 10:53:10 -0800
committerFather Chrysostomos <sprout@cpan.org>2011-12-31 11:37:05 -0800
commit1e9285c2ad54ae392a3dbf22116a3475c5e96e2f (patch)
treec9024d592ba2f26128bb6ef2542ae5e26ef2f132 /dist/Data-Dumper
parent63603bd5368bec328de15971ad27cf9192ef0d4e (diff)
downloadperl-1e9285c2ad54ae392a3dbf22116a3475c5e96e2f.tar.gz
Allow Data::Dumper to load on miniperl
For a long time it has been doing eval { require XSLoader }, but XSLoader will load on miniperl, it’s just XSLoader::load() that fails.
Diffstat (limited to 'dist/Data-Dumper')
-rw-r--r--dist/Data-Dumper/Dumper.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/dist/Data-Dumper/Dumper.pm b/dist/Data-Dumper/Dumper.pm
index 78e96a9d15..b2f3fc644a 100644
--- a/dist/Data-Dumper/Dumper.pm
+++ b/dist/Data-Dumper/Dumper.pm
@@ -31,9 +31,10 @@ BEGIN {
# toggled on load failure.
eval {
require XSLoader;
+ XSLoader::load( 'Data::Dumper' );
+ 1
}
- ? XSLoader::load( 'Data::Dumper' )
- : ($Useperl = 1);
+ or $Useperl = 1;
}
# module vars and their defaults