accessors::rw man page on Fedora

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

accessors::rw(3)      User Contributed Perl Documentation     accessors::rw(3)

NAME
       accessors::rw - create 'classic' read/write accessor methods in
       caller's package.

SYNOPSIS
	 package Foo;
	 use accessors::rw qw( foo bar baz );

	 my $obj = bless {}, 'Foo';

	 # always return the current value, even on set:
	 $obj->foo( 'hello ' ) if $obj->bar( 'world' ) eq 'world';

	 print $obj->foo, $obj->bar, $obj->baz( "!\n" );

DESCRIPTION
       The accessors::rw pragma lets you create simple classic read/write
       accessors at compile-time.  It is an alias for accessors::classic.

AUTHOR
       Steve Purkis <spurkis@cpan.org>.

SEE ALSO
       accessors, accessors::ro, accessors::classic, accessors::chained, base

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

List of man pages available for Fedora

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