The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

accessors::related - weak accessors

SYNOPSIS

    use accessors::related qw(foo bar);

    $obj->foo(...);
    $obj->bar(...);

DESCRIPTION

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.

AUTHOR

Slaven Rezic

COPYRIGHT & LICENSE

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.

SEE ALSO

accessors, Scalar::Util.