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)NAMEaccessors::rw - create 'classic' read/write accessor methods in caller's package.SYNOPSISpackage 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( "! " );DESCRIPTIONThe accessors::rw pragma lets you create simple classic read/write accessors at compile-time. It is an alias for accessors::classic.AUTHORSteve Purkis <spurkis@cpan.org>.SEE ALSOaccessors, accessors::ro, accessors::classic, accessors::chained, base perl v5.12.4 2011-10-16 accessors::rw(3pm)
Related Man Pages |
---|
object::accessor(3pm) - osx |
class::accessor::fast(3pm) - debian |
object::accessor(3perl) - debian |
accessors::classic(3pm) - debian |
accessors::ro(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
Adding the individual columns of a matrix. |
Installing Dash Shell on OS X Lion |
How can I do this in VI editor? |
Weird 'find' results |
My first PERL incarnation... Audio Oscillograph |