1NAME 2 B::Flags - Friendlier flags for B 3 4SYNOPSIS 5 use B::Flags; 6 # some ops 7 print B::main_root->flagspv; 8 print B::main_root->privatepv; 9 print $some_b_sv_object->flagspv; 10 11DESCRIPTION 12 Stringification of flags. 13 14 By default, "$foo->flags" when passed an object in the "B" class will 15 produce a relatively meaningless number, which one would need to grovel 16 through the Perl source code in order to do anything useful with. This 17 module adds "flagspv" to the SV and op classes and "privatepv" to the op 18 classes, which makes them easier to understand. 19 20METHODS 21 OP->flagspv 22 Returns stringification of the OP flags. 23 24 Adds now SIBLING to abstract the new LASTSIB/MORESIB flags since 25 5.21/5.22 and the old "op_sibling" pointer. Since 5.22 missing the 26 SIBLING flags indicates a PARENT at the "op_sibparent" pointer, with 27 -DPERL_OP_PARENT. 28 29 OP->privatepv 30 Returns stringification of the OP private flags. 31 32 SV->flagspv [type] 33 Returns stringification of the SV flags. 34 35 With the optional type only the flags for the given SvTYPE are used. 36 type 0 is for the SvFLAGS only. This way you can seperate between 37 sv->FLAGS and specialized AvFLAGS, GvFLAGS, CvFLAGS, ... in seperate 38 struct fields. 39 40 Note that only the names of bitmasked SV and OP flags are returned, 41 not pseudo flags, like TAINTED, which is stored as magic. 42 43AUTHOR 44 Simon Cozens, simon@cpan.org 45 46MAINTAINER 47 Abhijit Menon-Sen, ams@cpan.org 48 49 Reini Urban, rurban@cpan.org 50 51SEE ALSO 52 perl(1). 53 54LICENSE 55 AL & GPL. 56 57 Copyright 2001 Simon Cozens Copyright 2010,2013,2014,2015 Reini Urban 58 59