accessors::chained man page on Pidora

Man page or keyword search:  
man Server   31170 pages
apropos Keyword Search (all sections)
Output format
Pidora logo
[printable version]

accessors::chained(3) User Contributed Perl Documentationaccessors::chained(3)

NAME
       accessors::chained - create method chaining accessors in caller's
       package.

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;

DESCRIPTION
       The accessors::chained 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 accessors for documentation.

AUTHOR
       Steve Purkis <spurkis@cpan.org>

SEE ALSO
       accessors, accessors::classic, base

perl v5.14.1			  2011-06-20		 accessors::chained(3)
[top]

List of man pages available for Pidora

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net