diff options
author | Nicholas Clark <nick@ccl4.org> | 2013-07-14 11:12:17 +0200 |
---|---|---|
committer | Nicholas Clark <nick@ccl4.org> | 2013-07-23 13:39:51 +0200 |
commit | f4df373def033480516a6b0b9bd76e0182ce0024 (patch) | |
tree | 28dff4378a376300603c29e3b49128ddd259cbb0 /installperl | |
parent | a01f566143b97d5d074775e31bd511a83044cab6 (diff) | |
download | perl-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 'installperl')
-rwxr-xr-x | installperl | 2 |
1 files changed, 1 insertions, 1 deletions
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'; } |