B::Hooks::EndOfScope::PP - Execute code after a scope finished compilation - PP implementation
| Use Case | Command | Description |
|---|---|---|
| Execute code block at scope end | on_scope_end { ... } | Register a block to run after the current scope is compiled |
| Execute coderef at scope end | on_scope_end $code | Register a subroutine reference for post-compilation |
| Force pureβperl implementation | $ENV{B_HOOKS_ENDOFSCOPE_IMPLEMENTATION} = 'PP' | Use the PP version even when XS is available |
version 0.25
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.
Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=B-Hooks-EndOfScope> (or bug-B-Hooks-EndOfScope AT rt.org <mailto:bug-B-Hooks-EndOfScope AT rt.org>).
This software is copyright (c) 2008 by Florian Ragwitz.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-16 10:28 @216.73.216.208
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)