]> git.vpit.fr Git - perl/modules/Scope-Upper.git/commitdiff
Really make POD headers linkable
authorVincent Pit <vince@profvince.com>
Fri, 7 Sep 2012 11:06:34 +0000 (13:06 +0200)
committerVincent Pit <vince@profvince.com>
Fri, 7 Sep 2012 11:06:34 +0000 (13:06 +0200)
lib/Scope/Upper.pm

index 1ae9f9c7f117c9b6948e8ff61c79abeda2eff4c3..2ca1a2d64292e94031abad18b3fde8f184dcda46 100644 (file)
@@ -270,7 +270,10 @@ C<$key> is either an array index or a hash key, depending of which kind of varia
 
 If C<$what> is a string pointing to an undeclared variable, the variable will be vivified as soon as the localization occurs and emptied when it ends, although it will still exist in its glob.
 
 
 If C<$what> is a string pointing to an undeclared variable, the variable will be vivified as soon as the localization occurs and emptied when it ends, although it will still exist in its glob.
 
-=head2 C<localize_delete $what, $key, $context>
+=head2 C<localize_delete>
+
+    localize_delete $what, $key;
+    localize_delete $what, $key, $context;
 
 Introduces the deletion of a variable or an array/hash element delayed to the time of first return into the upper scope denoted by C<$context>.
 C<$what> can be:
 
 Introduces the deletion of a variable or an array/hash element delayed to the time of first return into the upper scope denoted by C<$context>.
 C<$what> can be:
@@ -329,14 +332,14 @@ The previous example can then be "corrected" :
 
 will rightfully set C<$num> to C<26>.
 
 
 will rightfully set C<$num> to C<26>.
 
-=head2 C<uplevel $code, @args, $context>
+=head2 C<uplevel>
 
     my @ret = uplevel { ...; return @ret };
     my @ret = uplevel { my @args = @_; ...; return @ret } @args;
     my @ret = uplevel { ... } @args, $context;
     my @ret = &uplevel($callback, @args, $context);
 
 
     my @ret = uplevel { ...; return @ret };
     my @ret = uplevel { my @args = @_; ...; return @ret } @args;
     my @ret = uplevel { ... } @args, $context;
     my @ret = &uplevel($callback, @args, $context);
 
-Executes the code reference C<$code> with arguments C<@args> as if it were located at the subroutine stack frame pointed by C<$context>, effectively fooling C<caller> and C<die> into believing that the call actually happened higher in the stack.
+Executes the code reference C<$callback> with arguments C<@args> as if it were located at the subroutine stack frame pointed by C<$context>, effectively fooling C<caller> and C<die> into believing that the call actually happened higher in the stack.
 The code is executed in the context of the C<uplevel> call, and what it returns is returned as-is by C<uplevel>.
 
     sub target {
 The code is executed in the context of the C<uplevel> call, and what it returns is returned as-is by C<uplevel>.
 
     sub target {