Skip Menu |

This queue is for tickets about the Scope-Cleanup CPAN distribution.

Report information
The Basics
Id: 117522
Status: new
Priority: 0/
Queue: Scope-Cleanup

People
Owner: Nobody in particular
Requestors: KES [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: anonymouse sub should have is_debuggable flag flushed
package DB; sub DB { establish_cleanup sub { }; } the 'sub {}' is compiled at DB package and callback is established from DB::DB subroutine but if you add `sub sub {}` into your package you will notice that it is called for that ANON sub According to doc: http://perldoc.perl.org/perldebguts.html When execution of the program reaches a subroutine call, a call to &DB::sub (args) is made instead, with $DB::sub holding the name of the called subroutine. (This doesn't happen if the subroutine was compiled in the DB package.) If I flush 'is_debuggable' flag for that ANON sub everything works fine.