Set::Object::Weak(3)

NAME
Set::Object::Weak - Sets without the referant reference increment

SYNOPSIS
 use Set::Object::Weak qw(weak_set);

 my $set = Set::Object::Weak->new( 0, "", {}, [], $object );
 # or
 my $set = weak_set( 0, "", {}, [], $object );

 print $set->size;  # 2 - the scalars aren't objects

DESCRIPTION
Sets, but weak. See "weaken" in Set::Object.

Note that the "set" in "Set::Object::Weak" returns weak sets. This is intentional, so that you can make all the sets in scope weak just by changing "use Set::Object" to "use Set::Object::Weak".

SEE ALSO
Set::Object

CREDITS
Perl magic by Sam Vilain, <samv@cpan.org>

Idea from nothingmuch.