Finding 'lost' variables (circular references)
问题 So, it's a bit of a simplistic case - but if I set up a circular reference like this: #!/usr/bin/perl use strict; use warnings; { my $thing; my $otherthing; $thing -> {otherthing} = \$otherthing; $otherthing -> {thing} = \$thing; } I create a memory leak - because by reference counting, the memory allocated here will never be freed, despite not having any outward 'access point'. So what I'm wondering - in this sort of scenario, is there any way I could - via debugging or similar - 'rediscover