From dd63271c27c22717ce5da6750defe7d931a26cec Mon Sep 17 00:00:00 2001 From: Alexey Sokolov Date: Mon, 29 May 2017 00:05:00 +0100 Subject: [PATCH] Modperl: Honor PERL5LIB env var --- modules/modperl/startup.pl | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/modperl/startup.pl b/modules/modperl/startup.pl index 545e8304..ebf20d7b 100644 --- a/modules/modperl/startup.pl +++ b/modules/modperl/startup.pl @@ -18,6 +18,11 @@ use 5.010; use strict; use warnings; use ZNC; + +# From http://search.cpan.org/dist/perl5lib/lib/perl5lib.pm +use Config; +use lib map { /(.*)/ } split /$Config{path_sep}/ => $ENV{PERL5LIB}; + use IO::File; use feature 'switch', 'say';