OS Manuals

B::Hooks::EndOfScope::PP(3pm)

B::Hooks::EndOfScope::PP(3) User Contributed Perl Documentation B::Hooks::EndOfScope::PP(3)

This is the pure-perl implementation of B::Hooks::EndOfScope based only on modules available as part of the perl core. Its leaner sibling B::Hooks::EndOfScope::XS will be automatically preferred if all dependencies are available and $ENV{B_HOOKS_ENDOFSCOPE_IMPLEMENTATION} is not set to 'PP'.

    on_scope_end { ... };
    on_scope_end $code;

Registers $code to be executed after the surrounding scope has been compiled.

This is exported by default. See Sub::Exporter on how to customize it.

Hey! The above document had some coding errors, which are explained below:

Unknown directive: =func
2026-10-25 perl v5.44.0

perl-b-hooks-endofscope 0.28-r7 · os · ingested 2026-10-26