I have a compound hashref as follows
my $ch = {
k1 => [ { k=>1 }, { m=>2 } ],
k2 => [ { l=>90}, ... ],
};
Hash::Util::lock_hashref_recurse($ch)
does not effectively lock these values..
@{$ch->{k1}}[0]->{k} = 'New value';
is allowed ! How do i lock such a hashref completely ?
What about Readonly?
E.g.
gives
Note that
%h3
is a hash, not a hashref. Hashrefs don't work well with Readonly:gives