Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

move require ::ConfigData into config method, now Alien::MyModule can…

… be loaded via require and still have access to ::ConfigData
  • Loading branch information...
commit 6e1a0573630b234886a1f2fb757279cc5dba960f 1 parent dc5ac74
@jberger jberger authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/Alien/Base.pm
View
5 lib/Alien/Base.pm
@@ -15,9 +15,6 @@ $VERSION = eval $VERSION;
sub import {
my $class = shift;
- my $config = $class . '::ConfigData';
- eval "require $config";
-
my $libs = $class->libs;
my @L = $libs =~ /-L(\S+)/g;
@@ -79,6 +76,8 @@ sub config {
$class = blessed $class || $class;
my $config = $class . '::ConfigData';
+ eval "require $config";
+
return $config->config(@_);
}
Please sign in to comment.
Something went wrong with that request. Please try again.