X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FStorage%2FUtil.pm;h=91ad692bc38ca61b1bda4b45c61b34c8da2c08ab;hb=d92b2381821e049808c6b9ddc9c09553e2a78290;hp=20da8db214e2c5253841478b85ac1252b9d61e38;hpb=8af2c2b01fe7c63f2748d1b1deca3198c8974b7f;p=gitmo%2FMooseX-Storage.git diff --git a/lib/MooseX/Storage/Util.pm b/lib/MooseX/Storage/Util.pm index 20da8db..91ad692 100644 --- a/lib/MooseX/Storage/Util.pm +++ b/lib/MooseX/Storage/Util.pm @@ -2,7 +2,6 @@ package MooseX::Storage::Util; use Moose qw(confess blessed); use MooseX::Storage::Engine (); -use utf8 (); sub peek { my ($class, $data, %options) = @_; @@ -27,7 +26,7 @@ sub peek { } sub _inflate_json { - my ($class, $json) = @_; + my ($self, $json) = @_; eval { require JSON::Any; JSON::Any->import }; confess "Could not load JSON module because : $@" if $@; @@ -43,7 +42,7 @@ sub _inflate_json { } sub _inflate_yaml { - my ($class, $yaml) = @_; + my ($self, $yaml) = @_; require Best; eval { Best->import([[ qw[YAML::Syck YAML] ]]) };