X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FConfig%2FAny.pm;h=1f4ff1cb25eb2f36d3faa1e7ccf1b989ff4e458e;hb=refs%2Ftags%2Fv0.22;hp=cd00963a4ad1045d5b843661f136aa38fd2483f2;hpb=803bbb1153db2f996a881286fdfe81eaa3c75b24;p=p5sagit%2FConfig-Any.git diff --git a/lib/Config/Any.pm b/lib/Config/Any.pm index cd00963..1f4ff1c 100644 --- a/lib/Config/Any.pm +++ b/lib/Config/Any.pm @@ -6,7 +6,7 @@ use warnings; use Carp; use Module::Pluggable::Object (); -our $VERSION = '0.16'; +our $VERSION = '0.22'; =head1 NAME @@ -142,7 +142,9 @@ sub _load { } # figure out what plugins we're using - my @plugins = $force ? @{ $args->{ force_plugins } } : $class->plugins; + my @plugins = $force + ? map { eval "require $_;"; $_; } @{ $args->{ force_plugins } } + : $class->plugins; # map extensions if we have to my ( %extension_lut, $extension_re );