X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMooseX%2FStorage%2FUtil.pm;h=fdfbf9631d69f696497578e62a1e4d56a6df9cc7;hb=99b6180c9ef7db26cb514bb6e305f73fbcbc588e;hp=0096b0b1886f61130eb67a21512745e697664277;hpb=1f3074ea2b80c4c8dfc081414f87285bc7892c82;p=gitmo%2FMooseX-Storage.git diff --git a/lib/MooseX/Storage/Util.pm b/lib/MooseX/Storage/Util.pm index 0096b0b..fdfbf96 100644 --- a/lib/MooseX/Storage/Util.pm +++ b/lib/MooseX/Storage/Util.pm @@ -4,7 +4,7 @@ use Moose qw(confess blessed); use MooseX::Storage::Engine (); use utf8 (); -our $VERSION = '0.03'; +our $VERSION = '0.18'; our $AUTHORITY = 'cpan:STEVAN'; sub peek { @@ -31,9 +31,8 @@ sub peek { sub _inflate_json { my ($class, $json) = @_; - - require JSON::Any; - eval { JSON::Any->import }; + + eval { require JSON::Any; JSON::Any->import }; confess "Could not load JSON module because : $@" if $@; utf8::encode($json) if utf8::is_utf8($json);