in reply to Re: Undefining subroutines and inheritance
in thread Undefining subroutines and inheritance

Can anyone explain why that doesn't seem to destroy $B::A?

Ah, but it seems to! Try replacing the bottom of the program with:

A->A; # Why doesn't it just call A::A here because of inheritance? B->A; # Not a CODE reference at noinherit.pl line 27. eval "print \$B::A"; # Use of uninitialized value in print at (eval 2) + line 1.

Replies are listed 'Best First'.
Re3: Undefining subroutines and inheritance
by bbfu (Curate) on Jun 29, 2001 at 02:44 UTC

    Hrm. I guess normal references to variables are bound at compile-time. Ah, well. Back to chromatic's method. *shrug*

    bbfu
    Seasons don't fear The Reaper.
    Nor do the wind, the sun, and the rain.
    We can be like they are.