Subject: | t/test.t is storing reference in hash hint |
not a big deal as this is coming from a unit test
but this is a bad idea to store references in hash hint
$^H{'Sub::Delete_test'} = bless [], ScopeHook;
view:
https://grep.metacpan.org/search?qci=&q=%5C%24%5C%5EH.*%3D.*bless&qft=&qd=Sub-Delete
The hints hash (%^H) cannot be used to store hashrefs as values,
so any implementation that relies on putting hashrefs in %^H is
intrinsically broken.
See "Implementation details" in the perlpragma manpage.
https://perldoc.perl.org/perlpragma.html#Implementation-details
You can also view Damian Conway workaround with Lexical::Hints module
for a clean work-around for this (annoying) limitation with %^H.