# phpman > perldoc > B::Hooks::EndOfScope::PP

## NAME
    [B::Hooks::EndOfScope::PP](https://www.chedong.com/phpMan.php/perldoc/B%3A%3AHooks%3A%3AEndOfScope%3A%3APP/markdown) - Execute code after a scope finished compilation - PP implementation

## VERSION
    version 0.25

## DESCRIPTION
    This is the pure-perl implementation of [B::Hooks::EndOfScope](https://www.chedong.com/phpMan.php/perldoc/B%3A%3AHooks%3A%3AEndOfScope/markdown) based only on modules available as
    part of the perl core. Its leaner sibling [B::Hooks::EndOfScope::XS](https://www.chedong.com/phpMan.php/perldoc/B%3A%3AHooks%3A%3AEndOfScope%3A%3AXS/markdown) will be automatically
    preferred if all dependencies are available and $ENV{B_HOOKS_ENDOFSCOPE_IMPLEMENTATION} is not
    set to 'PP'.

## FUNCTIONS
  on_scope_end
        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](https://www.chedong.com/phpMan.php/perldoc/Sub%3A%3AExporter/markdown) on how to customize it.

## SUPPORT
    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@rt.cpan.org> <mailto:<bug-B-Hooks-EndOfScope@rt.cpan.org>>).

## AUTHORS
    *   Florian Ragwitz <<rafl@debian.org>>

    *   Peter Rabbitson <<ribasushi@leporine.io>>

## COPYRIGHT AND LICENCE
    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.

