Object::groupsObject::groups is a pragma to implement group of properties. | |
Download |
Object::groups Ranking & Summary
Advertisement
- License:
- Perl Artistic License
- Price:
- FREE
- Publisher Name:
- Domizio Demichelis
- Publisher web site:
- http://search.cpan.org/~domizio/CGI-Application-Plus-1.21/lib/CGI/Application/CheckRM.pm
Object::groups Tags
Object::groups Description
Object::groups is a pragma to implement group of properties. Object::groups is a pragma to implement group of properties.This pragma is very similar to the Class::groups pragma: the main difference is the underlying variable that holds the value, which is a global hash in the caller package instead in the class. For example: package BaseClass; use Package::groups 'a_package_group'; use Class::groups 'a_class_group'; package SubClass; our @ISA = 'BaseClass'; # underlaying hash for accessor 'a_package_group' is # seClass::a_package_group # underlaying hash for accessor 'a_class_group' is # %SubClass::a_class_group;This might seem a subtle difference, but the possible usage in inherited classes makes a big difference.While you can also call a package group accessor by statically using the implementing package name (e.g. BaseClass-a_group>), regardless the subclass that uses it, overridden package accessor groups don't inherit defaults as Class accessors do. Requirements: · Perl
Object::groups Related Software