From 9c7c165124c94d8ec5e4aae6393b20789ac90c10 Mon Sep 17 00:00:00 2001 From: Father Chrysostomos Date: Fri, 18 Nov 2011 12:42:45 -0800 Subject: [PATCH] perldelta: fix for $DB::sub with bad subname --- pod/perldelta.pod | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pod/perldelta.pod b/pod/perldelta.pod index 071b20a..79f680d 100644 --- a/pod/perldelta.pod +++ b/pod/perldelta.pod @@ -649,6 +649,16 @@ at run time, but only during compilation of the $string or required file. This makes C equivalent to C [perl #70151]. +=item * + +When subroutine calls are intercepted by the debugger, the name of the +subroutine or a reference to it is stored in C<$DB::sub>, for the debugger +to access. In some cases (such as C<$foo = *bar; undef *bar; &$foo>) +C<$DB::sub> would be set to a name that could not be used to find the +subroutine, and so the debugger's attempt to call it would fail. Now the +check to see whether a reference is needed is more robust, so those +problems should not happen anymore [rt.cpan.org #69862]. + =back =head1 Known Problems -- 2.7.4