in reply to Is there something that can turn a coderef undef from inside the coderef?
Update: If I pull out the hooks separately ahead of time like this, it also fixes the bug ...
More support for BrowserUk's theory: If $_ gets singed during all the get_hooks_for() fireworks, it has no effect on the subsequent topicalization of $_ in the foreach loop.
In Section
Seekers of Perl Wisdom