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

.ds Aq ’

NAME

B::Flags - Friendlier flags for B

CONTENTS

SYNOPSIS



  use B::Flags;
  # some ops
  print B::main_root->flagspv;
  print B::main_root->privatepv;
  print $some_b_sv_object->flagspv;



DESCRIPTION

Stringification of flags.

By default, $foo->flags when passed an object in the B class will produce a relatively meaningless number, which one would need to grovel through the Perl source code in order to do anything useful with. This module adds flagspv to the SV and op classes and privatepv to the op classes, which makes them easier to understand.

METHODS

OP->flagspv Returns stringification of the OP flags.

Adds now SIBLING to abstract the new LASTSIB/MORESIB flags since 5.21/5.22 and the old op_sibling pointer. Since 5.22 missing the SIBLING flags indicates a PARENT at the op_sibparent pointer, with -DPERL_OP_PARENT.

OP->privatepv Returns stringification of the OP private flags.
SV->flagspv [type] Returns stringification of the SV flags.

With the optional type only the flags for the given SvTYPE are used. type 0 is for the SvFLAGS only. This way you can seperate between sv->FLAGS and specialized AvFLAGS, GvFLAGS, CvFLAGS, ... in seperate struct fields.

Note that only the names of bitmasked SV and OP flags are returned, not pseudo flags, like TAINTED, which is stored as magic. PAD, PADNAME, PADLIST and PADNAMELIST flags are now also supported.

AUTHOR

Simon Cozens, simon@cpan.org

MAINTAINER

Reini Urban, rurban@cpan.org

Abhijit Menon-Sen, ams@cpan.org

SEE ALSO

perl(1).

LICENSE

AL & GPL.

Copyright 2001 Simon Cozens Copyright 2010,2013,2014,2015 Reini Urban

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


perl v5.20.3 FLAGS (3) 2016-02-04

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