We don't bite newbies here... much | |
PerlMonks |
Re: undefing *foo{CODE} does not fully workby ikegami (Patriarch) |
on Apr 13, 2006 at 05:56 UTC ( [id://543009]=note: print w/replies, xml ) | Need Help?? |
I think you can't do it because of stubs
Undefining the CODE slot removes the sub there, but not the stub. Apparently, defined checks for the sub, while can checks for the stub.
In Section
Seekers of Perl Wisdom
|
|