in reply to Re: Removing CODE slot in typeglob / Reversing "use subs ...;"
in thread Removing CODE slot in typeglob / Reversing "use subs ...;"
Beware of the $false in there. Your eval fails because you turned on stricture, but even with my $false; it fails, so that's good. Unfortunately it works too well.
undef $::{FOO} is the same as undef *FOO and that undefined the whole typeglob.
I only want to remove the CODE slot in the typeglob.our $FOO = 'foo'; undef $::{FOO}; print defined $FOO ? 'defined' : 'undef'; __END__ undef
lodin
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Removing CODE slot in typeglob / Reversing "use subs ...;"
by BrowserUk (Patriarch) on Jan 03, 2008 at 18:33 UTC | |
by lodin (Hermit) on Jan 03, 2008 at 18:58 UTC | |
by BrowserUk (Patriarch) on Jan 03, 2008 at 19:13 UTC | |
by lodin (Hermit) on Jan 03, 2008 at 19:24 UTC |