]> git.vpit.fr Git - perl/modules/Scope-Upper.git/blobdiff - lib/Scope/Upper.pm
Fix calling goto to replace an uplevel'd subroutine frame
[perl/modules/Scope-Upper.git] / lib / Scope / Upper.pm
index ad3f339cf3ff37d933c0d590c9dc318cefd96361..ebe24a1b1dc534754f43af4b1227704e7cff26b7 100644 (file)
@@ -310,7 +310,7 @@ Both are identical, with the following caveats :
 =item *
 
 The L<Sub::Uplevel> implementation of C<uplevel> may execute a code reference in the context of B<any> upper stack frame.
-The L<Scope::Upper> version only allows to uplevel to a B<subroutine> stack frame, and will croak if you try to target an C<eval> or a format.
+The L<Scope::Upper> version can only uplevel to a B<subroutine> stack frame, and will croak if you try to target an C<eval> or a format.
 
 =item *
 
@@ -520,6 +520,9 @@ However, it's possible to hook the end of the current scope compilation with L<B
 Some rare oddities may still happen when running inside the debugger.
 It may help to use a perl higher than 5.8.9 or 5.10.0, as they contain some context-related fixes.
 
+Calling C<goto> to replace an L</uplevel>'d code does not work reliably on perl 5.6 yet.
+An exception will be thrown to prevent you from doing so.
+
 =head1 DEPENDENCIES
 
 L<XSLoader> (standard since perl 5.006).