đ B::Hooks::EndOfScope::UserpContributed Perl DocumB::Hooks::EndOfScope::PP(3pm)
B::Hooks::EndOfScope::PP - Execute code after a scope finished compilation - PP implementation
| Use Case | Command | Description |
|---|---|---|
| Register a block of code to run after scope compilation | on_scope_end { ... }; | Execute the block after the surrounding scope is compiled |
| Register a code reference | on_scope_end $code; | Execute the given code reference after scope compilation |
| Customize export behavior | use B::Hooks::EndOfScope::PP qw( on_scope_end ); | Import with Sub::Exporter for custom renaming |
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.
perl v5.32.1 2021-10-15 B::Hooks::EndOfScope::PP(3pm)
Generated by phpman v4.9.26-5-g7740029 Author: Che Dong Under GNU General Public License
2026-08-16 10:02 @2600:1f28:365:80b0:7cb9:fb:26c1:e368
CrawledBy CCBot/2.0 (https://commoncrawl.org/faq/)