Class::Fields::Attribs - Attribute constants for use with data members |
Class::Fields::Attribs - Attribute constants for use with data members
# Export the attribute constants use Class::Fields::Attribs;
Simply exports a set of constants used for low level work on data members. Each constant is a bitmask used to represent the type of a data member (as in Public, Private, etc...).
The exported attributes are:
# Indicate a piece of data which is both public and inherited. $attrib = PUBLIC | INHERITED;
# Check to see if an attribute is protected. print "Protected" if $attrib & PROTECTED;
It is rare that one has to use these constants and it is generally better to use the functions provided by Class::Fields.
Michael G Schwern <schwern@pobox.com>
Class::Fields::Attribs - Attribute constants for use with data members |