I need some tests of this new module.

Thanks in advance.

>From POD:
---------------------------------------------------

=head1 NAME

Hash::NoRef - A HASH that store values without increse the reference count.

=head1 DESCRIPTION

This HASH will store it's values without increse the reference count.
This can be used to store objects but without interfere in the DESTROY
mechanism, since the
references in this HASH won't count.

=head1 USAGE

  use Hash::NoRef ;

  my $hash = new Hash::NoRef() ;

  {
    my $obj = new FOO() ;
    $hash->{obj} = $obj ;
    ## When we exit this block $obj will be destroied,
    ## even with it stored in $hash->{obj}
  }

---------------------------------------------------

This can be useful if you need to keep a table of objects, but don't want to
mess with the "DESTROY mechanism".

Just wait CPAN to write it at:
http://www.cpan.org/authors/id/G/GM/GMPASSOS/Hash-NoRef-0.01.tar.gz

Regards,
Graciliano M. P.


Reply via email to