accessors::rw(3pm)

πŸ“¦
version 1.01 Β· 5 versions
, in ubuntu noble, ubuntu resolute, ubuntu stonking

πŸ’– accessors::rw πŸ’–

okay so bestie, welcome to the accessors::rw(3pm) page, straight from the User Contributed Perl Documentation ✨ this one is short but it's literally giving exactly what it needs to give, and we're obsessed πŸ’…


πŸŽ€ 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" );

like, look at that. the vibes are immaculate. πŸ’–


🌸 DESCRIPTION 🌸

so the tea is: the accessors::rw pragma lets you create simple classic read/write accessors at compile-time. no cap. ⏰✨

and bestie, it is literally an alias for accessors::classic. that's it. that's the whole moment. 😌


πŸ‘‘ AUTHOR πŸ‘‘

Steve Purkis <spurkis@cpan.org>. πŸ‘‘


🌈 SEE ALSO 🌈

  • accessors
  • accessors::ro
  • accessors::classic
  • accessors::chained
  • base

okay and one last thing: this whole page is running on perl v5.36.0, dated 2022-10-13, and it's the accessors::rw(3pm) manual. mwah πŸ’‹ periodt. πŸ¦‹
πŸ“¦ where this page comes from