mirror of
https://github.com/openssl/openssl.git
synced 2024-11-27 05:21:51 +08:00
20 lines
350 B
Perl
20 lines
350 B
Perl
|
#! /usr/bin/perl
|
||
|
|
||
|
package with_fallback;
|
||
|
|
||
|
sub import {
|
||
|
use File::Basename;
|
||
|
use File::Spec::Functions;
|
||
|
foreach (@_) {
|
||
|
eval "require $_";
|
||
|
if ($@) {
|
||
|
unshift @INC, catdir(dirname(__FILE__), "..", "external", "perl");
|
||
|
my $transfer = "transfer::$_";
|
||
|
eval "require $transfer";
|
||
|
shift @INC;
|
||
|
warn $@ if $@;
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
1;
|