|
NAMEB::OPCheck - PL_check hacks using Perl callbacksVERSIONversion 0.32SYNOPSISuse 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 DESCRIPTIONPL_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
SUPPORTBugs 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
CONTRIBUTORS
COPYRIGHT AND LICENCEThis software is copyright (c) 2009 by Chia-liang Kao, יובל קוג'מן (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.
Visit the GSP FreeBSD Man Page Interface. |