James A. Duncan > EO-0.96 > EO::WeakArray

Download:
EO-0.96.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
Report a bug
Module Version: 0.96   Source  

NAME ^

EO::WeakArray - arrays where all references contained are weak

SYNOPSIS ^

  use EO::WeakArray;
  my $thing = {};
  my $array = EO::WeakArray->new;
  $array->push( $obj );
  $obj = undef;

  if ( $array->at( 0 ) == undef ) {
    print "ok\n";
  }

DESCRIPTION ^

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.

METHODS ^

WeakArrays provide no methods beyond those provided by an array.

AUTHOR ^

James A. Duncan <jduncan@fotango.com>

COPYRIGHT ^

Copyright 2004 Fotango Ltd. All Rights Reserved.

This module is released under the same terms as Perl itself.