mirror of
https://github.com/openssl/openssl.git
synced 2024-11-21 01:15:20 +08:00
Change the transfer perl module so the real module gets properly registered
This is an important move if scripts want to refer to the loaded module without having perl think it needs to be loaded (again). Reviewed-by: Rich Salz <rsalz@openssl.org>
This commit is contained in:
parent
52739e40cc
commit
1cc98f75bf
7
external/perl/transfer/Text/Template.pm
vendored
7
external/perl/transfer/Text/Template.pm
vendored
@ -5,8 +5,9 @@
|
||||
BEGIN {
|
||||
use File::Spec::Functions;
|
||||
use File::Basename;
|
||||
use lib catdir(dirname(__FILE__), "..", "..");
|
||||
my $texttemplate = catfile("Text-Template-1.46", "lib", "Text", "Template.pm");
|
||||
require $texttemplate;
|
||||
use lib catdir(dirname(__FILE__), "..", "..",
|
||||
"Text-Template-1.46", "lib");
|
||||
use Text::Template;
|
||||
shift @INC; # Takes away the effect of use lib
|
||||
}
|
||||
1;
|
||||
|
Loading…
Reference in New Issue
Block a user