diff --git a/util/perl/with_fallback.pm b/util/perl/with_fallback.pm index 2af1d5fbd50d08fd5c77f9fb2308cb2f835a214e..fc5638ddf0db7e686d729a9bd4fe454e947246ee 100644 --- a/util/perl/with_fallback.pm +++ b/util/perl/with_fallback.pm @@ -8,15 +8,17 @@ package with_fallback; sub import { + shift; + use File::Basename; use File::Spec::Functions; foreach (@_) { - eval "require $_"; + eval "use $_"; if ($@) { unshift @INC, catdir(dirname(__FILE__), "..", "..", "external", "perl"); my $transfer = "transfer::$_"; - eval "require $transfer"; + eval "use $transfer"; shift @INC; warn $@ if $@; }