The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Class::Accessor::Chained - make chained accessors

SYNOPSIS

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

DEPENDENCIES

This module has external dependencies on the following modules:

Class::Accessor

INSTALLATION

perl Build.PL
perl Build test

and if all goes well

perl Build install

HISTORY

What changed over the last 3 revisions

0.01 Monday 24th November, 2003
initial CPAN release
=back

AUTHOR

Richard Clamp <richardc@unixbeard.net>

COPYRIGHT

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.

SEE ALSO

Class::Accessor, Class::Accessor::Chained::Fast

1 POD Error

The following errors were encountered while parsing the POD:

Around line 43:

You forgot a '=back' before '=head1'