sub _Destroyed { my $w = shift; my $a = delete $w->{'_Destroy_'}; if (ref($a)) { while (@$a) { my $ent = pop(@$a); if (ref $ent) {....}