Tomas Doran > B-Hooks-EndOfScope > B::Hooks::EndOfScope::PP

Download:
B-Hooks-EndOfScope-0.12.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.12   Source   Latest Release: B-Hooks-EndOfScope-0.13

NAME ^

B::Hooks::EndOfScope::PP - Execute code after a scope finished compilation - PP implementation

DESCRIPTION ^

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

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 on how to customize it.

AUTHORS ^

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2012 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.

syntax highlighting: