tests and such
This commit is contained in:
parent
5c2581850f
commit
e891410075
7 changed files with 254 additions and 3 deletions
|
|
@ -235,9 +235,15 @@ sub load {
|
|||
croak $moduleError{$module};
|
||||
}
|
||||
|
||||
# Check if we already have it
|
||||
# Try to load the module
|
||||
my $modulePath = $module . ".pm";
|
||||
$modulePath =~ s{::|'}{/}g;
|
||||
|
||||
if ( $INC{$modulePath} ) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
if (eval { require $modulePath; 1 }) {
|
||||
return 1;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue