diff --git a/dist/Storable/Storable.pm b/dist/Storable/Storable.pm index 78ff0b6b5cdf..a742438bed1f 100644 --- a/dist/Storable/Storable.pm +++ b/dist/Storable/Storable.pm @@ -21,7 +21,7 @@ package Storable; @ISA = qw(Exporter); use vars qw($canonical $forgive_me $VERSION); -$VERSION = '2.29'; +$VERSION = '2.30'; BEGIN { if (eval { local $SIG{__DIE__}; require Log::Agent; 1 }) { diff --git a/dist/Storable/t/restrict.t b/dist/Storable/t/restrict.t index a82c13da0c26..65dac6ff2659 100644 --- a/dist/Storable/t/restrict.t +++ b/dist/Storable/t/restrict.t @@ -35,7 +35,7 @@ sub BEGIN { use Storable qw(dclone freeze thaw); -use Hash::Util qw(lock_hash unlock_value); +use Hash::Util qw(lock_hash unlock_value lock_keys); use Test::More tests => 104; my %hash = (question => '?', answer => 42, extra => 'junk', undef => undef); @@ -113,7 +113,7 @@ for $Storable::canonical (0, 1) { my %hv; $hv{a} = __PACKAGE__; - lock_hash %hv; + lock_keys %hv; my $hv2 = &$cloner(\%hv); ok eval { $$hv2{a} = 70 }, 'COWs do not become read-only'; }