EO::WeakArray - arrays where all references contained are weak
use EO::WeakArray; my $thing = {}; my $array = EO::WeakArray->new; $array->push( $obj ); $obj = undef; if ( $array->at( 0 ) == undef ) { print "ok\n"; }
A WeakArray is similar to a normal array only its contents are not reference counted. Thus, if something destroys the contents from the outside world then it disappears from inside the array as well.
WeakArrays provide no methods beyond those provided by an array.
James A. Duncan <jduncan@fotango.com>
Copyright 2004 Fotango Ltd. All Rights Reserved.
This module is released under the same terms as Perl itself.
To install EO, copy and paste the appropriate command in to your terminal.
cpanm
cpanm EO
CPAN shell
perl -MCPAN -e shell install EO
For more information on module installation, please visit the detailed CPAN module installation guide.