]> git.vpit.fr Git - perl/modules/Scalar-Vec-Util.git/commitdiff
Simplify Config and File::Spec loading in Makefile.PL
authorVincent Pit <vince@profvince.com>
Fri, 2 Nov 2012 01:16:25 +0000 (23:16 -0200)
committerVincent Pit <vince@profvince.com>
Fri, 2 Nov 2012 01:18:44 +0000 (23:18 -0200)
Makefile.PL

index 533f27d7ec3f82665a3d000d300c2d1d84d40320..1e8cc00886fa837b51bcfa2cf6def79d4c2841b5 100644 (file)
@@ -4,12 +4,11 @@ use strict;
 use warnings;
 use ExtUtils::MakeMaker;
 
+use Config;
+
 BEGIN {
- eval { require Config };
- die 'OS unsupported' if $@;
- Config->import(qw<%Config>);
- eval { require File::Spec };
- die 'OS unsupported' if $@;
+ local $@;
+ eval { require File::Spec; 1 } or die 'OS unsupported';
 }
 
 my $cc;