# info > B::Hooks::EndOfScope::XS

[B::Hooks::EndOfScope::UserpContributed](https://www.chedong.com/phpMan.php/perldoc/B%3A%3AHooks%3A%3AEndOfScope%3A%3AUserpContributed/markdown) Perl [DocumB::Hooks::EndOfScope](https://www.chedong.com/phpMan.php/perldoc/DocumB%3A%3AHooks%3A%3AEndOfScope/markdown)::[XS(3pm)](https://www.chedong.com/phpMan.php/man/XS/3pm/markdown)

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

## VERSION
       version 0.25

## DESCRIPTION
       This is the implementation of [B::Hooks::EndOfScope](https://www.chedong.com/phpMan.php/perldoc/B%3A%3AHooks%3A%3AEndOfScope/markdown) based on
       [Variable::Magic](https://www.chedong.com/phpMan.php/perldoc/Variable%3A%3AMagic/markdown), which is an XS module dependent on a compiler. It will
       always be automatically preferred if [Variable::Magic](https://www.chedong.com/phpMan.php/perldoc/Variable%3A%3AMagic/markdown) is available.

## 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
       o   Florian Ragwitz <<rafl@debian.org>>

       o   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.

perl v5.32.1                      2021-10-15     [B::Hooks::EndOfScope](https://www.chedong.com/phpMan.php/perldoc/B%3A%3AHooks%3A%3AEndOfScope/markdown)::[XS(3pm)](https://www.chedong.com/phpMan.php/man/XS/3pm/markdown)
