GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  B::HOOKS::ENDOFSCOPE (3)

.ds Aq ’

NAME

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

CONTENTS

VERSION

version 0.15

SYNOPSIS



    on_scope_end { ... };



DESCRIPTION

This module allows you to execute code when perl finished compiling the surrounding scope.

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.

PURE-PERL MODE CAVEAT

While Variable::Magic has access to some very dark sorcery to make it possible to throw an exception from within a callback, the pure-perl implementation does not have access to these hacks. Therefore, what would have been a compile-time exception is instead converted to a warning, and your execution will continue as if the exception never happened.

To explicitly request an XS (or PP) implementation one has two choices. Either to import from the desired implementation explicitly:



 use B::Hooks::EndOfScope::XS
   or
 use B::Hooks::EndOfScope::PP



or by setting $ENV{B_HOOKS_ENDOFSCOPE_IMPLEMENTATION} to either XS or PP.

SEE ALSO

Sub::Exporter

Variable::Magic

AUTHORS

o Florian Ragwitz <rafl@debian.org>
o Peter Rabbitson <ribasushi@cpan.org>

COPYRIGHT AND LICENSE

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.

CONTRIBUTORS

o Karen Etheridge <ether@cpan.org>
o Simon Wilper <sxw@chronowerks.de>
o Tatsuhiko Miyagawa <miyagawa@bulknews.net>
o Tomas Doran <bobtfish@bobtfish.net>
Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 B::HOOKS::ENDOFSCOPE (3) 2015-05-14

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.