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::OPCHECK (3)

.ds Aq ’

NAME

B::OPCheck - PL_check hacks using Perl callbacks

CONTENTS

VERSION

version 0.30

SYNOPSIS



    use B::Generate; # to change things

    use B::OPCheck entersub => check => sub {
        my $op = shift; # op has been checked by normal PL_check
        sodomize($op);
    };

    foo(); # this entersub will have the callback triggered



DESCRIPTION

PL_check is an array indexed by opcode number (op_type) that contains function pointers invoked as the last stage of optree compilation, per op.

This hook is called in bottom up order, as the code is parsed and the optree is prepared.

This is how modules like autobox do their magic

This module provides an api for registering PL_check hooks lexically, allowing you to alter the behavior of certain ops using B::Generate from perl space.

CHECK TYPES

check Called after normal PL_checking. The return value is ignored.
after Not yet implemented.

Allows you to return a processed B::OP. The op has been processed by PL_check already.

before Not yet implemented.

Allows you to return a processed B::OP to be passed to normal PL_check.

replace Not yet implemented.

Allows you to return a processed B::OP yourself, skipping normal PL_check handling completely.

SUPPORT

Bugs may be submitted through the RT bug tracker <https://rt.cpan.org/Public/Dist/Display.html?Name=B-OPCheck> (or bug-B-OPCheck@rt.cpan.org <mailto:bug-B-OPCheck@rt.cpan.org>).

AUTHORS

o Chia-liang Kao <clkao@clkao.org>
o XXXX XXXXX (Yuval Kogman) <nothingmuch@woobling.org>

CONTRIBUTORS

o Florian Ragwitz <rafl@debian.org>
o Karen Etheridge <ether@cpan.org>
o Alexandr Ciornii <alexchorny@gmail.com>

COPYRIGHT AND LICENCE

This software is copyright (c) 2009 by Chia-liang Kao, XXXX XXXXX (Yuval Kogman).

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 B::OPCHECK (3) 2015-09-09

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