From: Vincent Pit Date: Fri, 2 Nov 2012 01:16:25 +0000 (-0200) Subject: Simplify Config and File::Spec loading in Makefile.PL X-Git-Tag: v0.08~13 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=92e6d17d21b18fdac46cc8c241f1415030c1db2d;p=perl%2Fmodules%2FScalar-Vec-Util.git Simplify Config and File::Spec loading in Makefile.PL --- diff --git a/Makefile.PL b/Makefile.PL index 533f27d..1e8cc00 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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;