accessors::related - weak accessors
use accessors::related qw(foo bar); $obj->foo(...); $obj->bar(...);
The accessors::related pragma lets you create accessors which are suitable for non-possesing relationships. Or, technically, accessors, which are automatically marked as weak references.
This is useful to avoid circular references and thus possible memory leaks.
Slaven Rezic
Copyright 2008 Slaven Rezic, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
accessors, Scalar::Util.
To install accessors::related, copy and paste the appropriate command in to your terminal.
cpanm
cpanm accessors::related
CPAN shell
perl -MCPAN -e shell install accessors::related
For more information on module installation, please visit the detailed CPAN module installation guide.