Subject: | CSS::Declare:: _install_unexporter abd XML::Tags::_install_unexporter are storing references in hash hint |
CSS::Declare:: _install_unexporter abd XML::Tags::_install_unexporter are storing references in hash hint
online grep:
https://grep.metacpan.org/search?qci=&q=%5C%24%5C%5EH.*%3D.*bless&qft=&qd=Web-Simple
# $^H{'CSS::Declare::Unex'} = bless($unex, 'CSS::Declare::Unex');
# $^H{'XML::Tags::Unex'} = bless($unex, 'XML::Tags::Unex');
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.