[perl #37128] undefing *foo{CODE} does not fully work

2005-09-10 Thread via RT
# New Ticket Created by Ben Tilly # Please include the string: [perl #37128] # in the subject line of all future correspondence about this issue. # URL: https://rt.perl.org/rt3/Ticket/Display.html?id=37128 This is a bug report for perl from [EMAIL PROTECTED], generated with the help of

Re: [perl #37128] undefing *foo{CODE} does not fully work

2005-09-10 Thread Dave Mitchell
On Fri, Sep 09, 2005 at 06:11:49PM -0700, Ben Tilly wrote: If you try to undef the CODE slot of a glob, it only halfway works. ref(*foo{CODE}) will still show that it is a code reference, and UNIVERSAL::can still shows that it is a code reference. Undefing a sub is not the same as deleting a

re: [perl #37128] undefing *foo{CODE} does not fully work

2005-09-10 Thread Ben Tilly
When I looked at the way the message appeared on the list, I realized that I forgot to include one line of output. The one where it dies. Here is the program and output with that additional piece of information. And to clarify the Class::DBI/Apache::Reload conflict that this causes, load up the

Re: [perl #37128] undefing *foo{CODE} does not fully work

2005-09-10 Thread Rafael Garcia-Suarez
On 9/10/05, Dave Mitchell [EMAIL PROTECTED] wrote: Undefing a sub is not the same as deleting a sub. Internally, the CV continues to exist, but its pad and op tree are freed. cf: One of the items on the todo list is to allow the construct delete foo; I could finish my patch to do it if I