Hash-Wrap
view release on metacpan or search on metacpan
lib/Hash/Wrap.pm view on Meta::CPAN
}
else {
$dict{wrap_hash_entry} = '<<RECURSE_WRAP_HASH>>';
}
# do a two-step initialization of the constructor. If
# the initialization sub is stored in $recurse_into_hash, and then
# $recurse_into_hash is set to the actual constructor I worry that
# Perl may decide to garbage collect the setup subroutine while it's
# busy setting $recurse_into_hash. So, store the
# initialization sub in something other than $recurse_into_hash.
$dict{recursion_constructor} = <<'END';
our $recurse_into_hash;
our $setup_recurse_into_hash = sub {
require Hash::Wrap;
( $recurse_into_hash ) = Hash::Wrap->import ( { %$attr, -as => '-return',
-recurse => <<RECURSE_LIMIT>> } );
goto &$recurse_into_hash;
};
( run in 0.996 second using v1.01-cache-2.11-cpan-87723dcf8b7 )