debian man page for accessors::rw

Query: accessors::rw

OS: debian

Section: 3pm

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

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

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( "! " );
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.12.4 2011-10-16 accessors::rw(3pm)
Related Man Pages
accessors(3pm) - debian
object::accessor(3pm) - centos
class::accessor::class(3pm) - debian
class::makemethods::emulator::accessors(3pm) - debian
accessors::classic(3pm) - debian
Similar Topics in the Unix Linux Community
One instance of comparing grep and awk
A (ksh) Library For and From UNIX.com
How to copy a column of multiple files and paste into new excel file (next to column)?
New UNIX and Linux History Sections