OS Manuals

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

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

This is the implementation of B::Hooks::EndOfScope based on Variable::Magic, which is an XS module dependent on a compiler. It will always be automatically preferred if Variable::Magic is available.

    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-04-21 perl v5.42.2

perl-b-hooks-endofscope 0.28-r6 · os · ingested 2026-09-30