in reply to Re^6: Memory leak detectionin thread Memory leak detection
my $var; sub func { $var } [download]
See Closure on Closures.