diff options
author | Ben Morrow <ben@morrow.me.uk> | 2010-07-13 22:20:21 +0100 |
---|---|---|
committer | Rafael Garcia-Suarez <rgs@consttype.org> | 2010-07-15 12:28:01 +0200 |
commit | a3e07c8779a37a0cc0a4e5ceac72eec0b30c0c0c (patch) | |
tree | 5fc7bc44bcb9ba1ef71075cb23a8d41abd37cf24 /pod/perlguts.pod | |
parent | 53c0f7b3da3c1d6006f40558f6011132074df828 (diff) | |
download | perl-a3e07c8779a37a0cc0a4e5ceac72eec0b30c0c0c.tar.gz |
Macros to en/disable blockhook entries.
This allows the individual callbacks to be switched on and off as
necessary, without removing the entry from PL_blockhooks.
Diffstat (limited to 'pod/perlguts.pod')
-rw-r--r-- | pod/perlguts.pod | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pod/perlguts.pod b/pod/perlguts.pod index d0178e7285..62e99bd386 100644 --- a/pod/perlguts.pod +++ b/pod/perlguts.pod @@ -1905,10 +1905,12 @@ start. Once registered, there is no mechanism to switch these hooks off, so if that is necessary you will need to do this yourself. An entry in C<%^H> -is probably the best way, so the effect is lexically scoped. You should -also be aware that generally speaking at least one scope will have -opened before your extension is loaded, so you will see some -C<pre/post_end> pairs that didn't have a matching C<start>. +is probably the best way, so the effect is lexically scoped; however it +is also possible to use the C<BhkDISABLE> and C<BhkENABLE> macros to +temporarily switch entries on and off. You should also be aware that +generally speaking at least one scope will have opened before your +extension is loaded, so you will see some C<pre/post_end> pairs that +didn't have a matching C<start>. =head1 Examining internal data structures with the C<dump> functions |