Class::Accessor::Fast::Contained

Class::Accessor::Fast::Contained is a Perl module for fast accessors with data containment.
Download

Class::Accessor::Fast::Contained Ranking & Summary

Advertisement

  • Rating:
  • License:
  • GPL
  • Price:
  • FREE
  • Publisher Name:
  • Oliver Gorwits
  • Publisher web site:
  • http://search.cpan.org/~oliver/

Class::Accessor::Fast::Contained Tags


Class::Accessor::Fast::Contained Description

Class::Accessor::Fast::Contained is a Perl module for fast accessors with data containment. Class::Accessor::Fast::Contained is a Perl module for fast accessors with data containment.SYNOPSIS package Foo; use base qw(Class::Accessor::Fast::Contained); # The rest is the same as Class::Accessor::FastThis module does two things differently to the venerable Class::Accessor::Fast :Fields are stored at arms-length within a single hash value of $self, rather than directly in the $self blessed referent.new() allows mixin into an existing object, rather than creating and returning a new blessed hashref. To do this, just call something like: my $self = Some::Other::Class->new; $self = $self->Class::Accessor::Fast::Contained::new;Note that the mixin code only supports objects which use a blessed hash reference or a blessed typeglob reference.An alias setup() is available which does the same as new() but might make more sense if being used in this way. Requirements: · Class::Accessor · Perl


Class::Accessor::Fast::Contained Related Software