B::Hooks::EndOfScope::PP - Execute code after a scope finished compilation - PP implementation
version 0.23
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'.
$ENV{B_HOOKS_ENDOFSCOPE_IMPLEMENTATION}
'PP'
on_scope_end { ... }; on_scope_end $code;
Registers $code to be executed after the surrounding scope has been compiled.
$code
This is exported by default. See Sub::Exporter on how to customize it.
Bugs may be submitted through the RT bug tracker (or bug-B-Hooks-EndOfScope@rt.cpan.org).
Florian Ragwitz <rafl@debian.org>
Peter Rabbitson <ribasushi@leporine.io>
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.
To install B::Hooks::EndOfScope, copy and paste the appropriate command in to your terminal.
cpanm
cpanm B::Hooks::EndOfScope
CPAN shell
perl -MCPAN -e shell install B::Hooks::EndOfScope
For more information on module installation, please visit the detailed CPAN module installation guide.