Query: set::object::weak
OS: debian
Section: 3pm
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
Set::Object::Weak(3pm) User Contributed Perl Documentation Set::Object::Weak(3pm)NAMESet::Object::Weak - Sets without the referant reference incrementSYNOPSISuse 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 objectsDESCRIPTIONSets, 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".CONSTRUCTORSnew This class method is exactly the same as "Set::Object->new", except that it returns a weak set. weak_set( ... ) This optionally exported function is a shortcut for saying "Set::Object::Weak->new(...)". set( ... ) This method is exported so that if you see: use Set::Object qw(set); You can turn it into using weak sets lexically with: use Set::Object::Weak qw(set); Set::Object 1.19 had a bug in this method that meant that it would not add the passed members into it.SEE ALSOSet::ObjectCREDITSPerl magic by Sam Vilain, <samv@cpan.org> Idea from nothingmuch. perl v5.14.2 2008-10-12 Set::Object::Weak(3pm)
Related Man Pages |
---|
set::object(3) - suse |
module::pluggable::object(3pm) - mojave |
set::object::weak(3) - suse |
module::pluggable::object(3pm) - suse |
tap::object(3pm) - suse |
Similar Topics in the Unix Linux Community |
---|
Processer Set |
What is Set -x |
SPT Object Database 0.2.0 (Default branch) |
The SQLDependency Object and Entitlements |
SPT Object Database 0.3.0 (Default branch) |