Subject: | Class::MOP::load_class is deprecated |
Since Moose 2.12 Class::MOP::load_class is deprecated, see:
(https://metacpan.org/pod/release/ETHER/Moose-2.1106-TRIAL/lib/Moose/Manual/Delta.pod#pod2.1200)
The attached patch fixes that.
Thanks
Subject: | class_loaded_patch.patch |
--- a/lib/Excel/Template/Plus.pm 2014-08-31 11:39:52.000000000 +0200
+++ b/lib/Excel/Template/Plus.pm 2014-08-31 11:39:12.000000000 +0200
@@ -1,7 +1,6 @@
package Excel::Template::Plus;
use Moose;
-use Class::Load qw/load_class/;
our $VERSION = '0.05';
our $AUTHORITY = 'cpan:STEVAN';
@@ -12,7 +11,7 @@
my $engine_class = 'Excel::Template::Plus::' . $options{engine};
- eval { Class::Load::load_class($engine_class) };
+ eval { Class::MOP::load_class($engine_class) };
if ($@) {
confess "Could not load engine class ($engine_class) because " . $@;
}