diff options
-rw-r--r-- | ext/Data/Dumper/Dumper.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/Data/Dumper/Dumper.pm b/ext/Data/Dumper/Dumper.pm index 3f2d8c9181..1639189b3d 100644 --- a/ext/Data/Dumper/Dumper.pm +++ b/ext/Data/Dumper/Dumper.pm @@ -29,12 +29,12 @@ BEGIN { # toggled on load failure. eval { require XSLoader; - XSLoader::load( 'Data::Dumper' ); - 1; }; $Useperl = 1 if $@; } +XSLoader::load( 'Data::Dumper' ) unless $Useperl; + # module vars and their defaults $Indent = 2 unless defined $Indent; $Purity = 0 unless defined $Purity; |