X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=p5sagit%2FConfig-Any.git;a=blobdiff_plain;f=lib%2FConfig%2FAny.pm;h=c7164cd0e97ce9141180547274771a60328db940;hp=cd00963a4ad1045d5b843661f136aa38fd2483f2;hb=ee6cd09bc61ac649cd49e630588815c232a9ea68;hpb=803bbb1153db2f996a881286fdfe81eaa3c75b24 diff --git a/lib/Config/Any.pm b/lib/Config/Any.pm index cd00963..c7164cd 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.20'; =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 );