GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  SET::OBJECT::WEAK (3)

.ds Aq ’

NAME

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

CONTENTS

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 arent 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.

CONSTRUCTORS

new This class method is exactly the same as Set::Object->new, except that it returns a weak set.
weak_set( ... ) This optionally exported <B>functionB> 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 ALSO

Set::Object

CREDITS

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

Idea from nothingmuch.

Search for    or go to Top of page |  Section 3 |  Main Index


perl v5.20.3 SET::OBJECT::WEAK (3) 2015-06-10

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.