sub Dog::DESTROY { push @::HEAVEN, shift }

-- Randal L. Schwartz, Perl hacker

Replies are listed 'Best First'.
Re: All dogs go to heaven
by japhy (Canon) on Dec 14, 2000 at 22:19 UTC
    Won't that cause much infinite looping badness at the end of the program?
    Update -- it tells me: "DESTROY created new reference to dead object during global destruction." And I don't see this message documented anywhere.

    japhy -- Perl and Regex Hacker