05 Feb 2011 03:35:20 UTC
- Distribution: Class-Fields
- Module version: 0.03
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (0)
- Testers (1251 / 0 / 0)
- KwaliteeBus factor: 0
- 78.80% Coverage
- License: perl_5
- Activity24 month
- Download (15.32KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionMSCHWERN Michael G Schwernand 1 contributors
- Michael G Schwern
Take me over?The maintainer of this distribution is looking for someone to take over! If you're interested then please contact them via email.
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:
Each of these constants is a bitmask representing a possible setting of a field attribute. They can be combined by using a bitwise OR and attributes can be checked for using a bitwise AND. For example:
# 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 <firstname.lastname@example.org>
Module Install Instructions
To install Class::Fields, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell install Class::Fields
For more information on module installation, please visit the detailed CPAN module installation guide.