=head1 NAME accessors::chained - create method chaining accessors in caller's package. =head1 SYNOPSIS package Foo; use accessors::chained qw( foo bar baz ); my $obj = bless {}, 'Foo'; # generates chaining accessors: $obj->foo( 'hello ' ) ->bar( 'world' ) ->baz( "!\n" ); print $obj->foo, $obj->bar, $obj->baz; =cut package accessors::chained; use strict; use warnings::register; use base qw( accessors ); our $VERSION = ((require accessors), $accessors::VERSION)[1]; our $REVISION = (split(/ /, ' $Revision: 1.2 $ '))[2]; # inherit everything for now. 1; __END__ =head1 DESCRIPTION The B pragma lets you create simple method-chaining accessors at compile-time. This module exists for future backwards-compatability - if the default style of accessor ever changes, method-chaining accessors will still be available through this pragma. See L for documentation. =head1 AUTHOR Steve Purkis =head1 SEE ALSO L, L, L =cut