| Class-Accessor-Chained documentation | view source | Contained in the Class-Accessor-Chained distribution. |
Class::Accessor::Chained - make chained accessors
package Foo; use base qw( Class::Accessor::Chained ); __PACKAGE__->mk_accessors(qw( foo bar baz )); my $foo = Foo->new->foo(1)->bar(2)->baz(4); print $foo->bar; # prints 2
This module has external dependencies on the following modules:
Class::Accessor
perl Build.PL perl Build test
and if all goes well
perl Build install
What changed over the last 3 revisions
initial CPAN release =back
Richard Clamp <richardc@unixbeard.net>
Copyright (C) 2003 Richard Clamp. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
| Class-Accessor-Chained documentation | view source | Contained in the Class-Accessor-Chained distribution. |