| Current Path : /proc/thread-self/root/usr/share/doc/perl-Test-LeakTrace/example/ |
| Current File : //proc/thread-self/root/usr/share/doc/perl-Test-LeakTrace/example/callback.pl |
#!/usr/bin/perl -w
use strict;
use Test::LeakTrace;
use Data::Dumper;
leaktrace{
my %a;
my %b;
$a{b} = \%b;
$b{a} = \%a;
} sub {
my($ref, $file, $line) = @_;
print "#line $line $file\n";
print Dumper($ref);
};