From f4df373def033480516a6b0b9bd76e0182ce0024 Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Sun, 14 Jul 2013 11:12:17 +0200 Subject: In install_lib.pl, no need to Config->import for the relocatableinc setup. require Config; within the BEGIN block instead of using it outside it to save creating one implicit BEGIN block, and running its import twice. Remove the require 5.004; as the require of Config will fail if running with anything other than the version about to be installed. Note in installperl and installman that install_lib.pl imports Config. --- installperl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'installperl') diff --git a/installperl b/installperl index 04b3786238..427786f72b 100755 --- a/installperl +++ b/installperl @@ -1,12 +1,12 @@ #!./perl -w BEGIN { - require 5.004; chdir '..' if !-d 'lib' and -d '../lib'; @INC = 'lib'; $ENV{PERL5LIB} = 'lib'; # This needs to be at BEGIN time, before any use of Config + # install_lib itself loads and imports Config into main:: require './install_lib.pl'; } -- cgit v1.2.1