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

# [DESCRIPTION](#DESCRIPTION)

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.

# [POD ERRORS](#POD_ERRORS)

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

[Around line 60:](#Around)

Unknown directive: =func

2026-04-21 perl v5.42.2

---

Document: B::Hooks::EndOfScope::PP(3pm) from perl-b-hooks-endofscope 0.28-r6 (Chainguard OS)
Source: https://github.com/karenetheridge/B-Hooks-EndOfScope
