in reply to How to explicitly destroy an object so that all other references to it would become false?
my $x = bless {}, "XXX"; my $y = \$x; undef $x; if (! $$y) { print "hurrah!\n"; } [download]