Devel-FindRef

 view release on metacpan or  search on metacpan

FindRef.pm  view on Meta::CPAN


=head1 SYNOPSIS

  use Devel::FindRef;

  print Devel::FindRef::track \$some_variable;

=head1 DESCRIPTION

Tracking down reference problems (e.g. you expect some object to be
destroyed, but there are still references to it that keep it alive) can be
very hard. Fortunately, perl keeps track of all its values, so tracking
references "backwards" is usually possible.

The C<track> function can help track down some of those references back to
the variables containing them.

For example, for this fragment:

   package Test;

README  view on Meta::CPAN

NAME
    Devel::FindRef - where is that reference to my variable hiding?

SYNOPSIS
      use Devel::FindRef;

      print Devel::FindRef::track \$some_variable;

DESCRIPTION
    Tracking down reference problems (e.g. you expect some object to be
    destroyed, but there are still references to it that keep it alive) can
    be very hard. Fortunately, perl keeps track of all its values, so
    tracking references "backwards" is usually possible.

    The "track" function can help track down some of those references back
    to the variables containing them.

    For example, for this fragment:

       package Test;



( run in 0.819 second using v1.01-cache-2.11-cpan-39bf76dae61 )