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 |
---|
accessors(3pm) - debian |
class::accessor::fast(3pm) - linux |
object::accessor(3pm) - mojave |
object::accessor(3pm) - osx |
class::makemethods::emulator::accessors(3pm) - debian |
Similar Topics in the Unix Linux Community |
---|
How can I do this in VI editor? |
Detecting unused variables... |
One instance of comparing grep and awk |
Weird 'find' results |