summaryrefslogtreecommitdiff
path: root/installman
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-07-14 11:12:17 +0200
committerNicholas Clark <nick@ccl4.org>2013-07-23 13:39:51 +0200
commitf4df373def033480516a6b0b9bd76e0182ce0024 (patch)
tree28dff4378a376300603c29e3b49128ddd259cbb0 /installman
parenta01f566143b97d5d074775e31bd511a83044cab6 (diff)
downloadperl-f4df373def033480516a6b0b9bd76e0182ce0024.tar.gz
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.
Diffstat (limited to 'installman')
-rwxr-xr-xinstallman3
1 files changed, 3 insertions, 0 deletions
diff --git a/installman b/installman
index 201be21da2..3f83909d42 100755
--- a/installman
+++ b/installman
@@ -1,10 +1,13 @@
#!./perl -w
+
BEGIN {
@INC = qw(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';
}
+
use strict;
use Getopt::Long;