X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FScope%2FUpper.pm;h=ad3f339cf3ff37d933c0d590c9dc318cefd96361;hb=c672756e32f272a25fc1464eee307708fb46538c;hp=73961880af228bd3064a65b8ca47025d18031772;hpb=1da764455f3f82a24aad0881beb01f5e4d3cf858;p=perl%2Fmodules%2FScope-Upper.git diff --git a/lib/Scope/Upper.pm b/lib/Scope/Upper.pm index 7396188..ad3f339 100644 --- a/lib/Scope/Upper.pm +++ b/lib/Scope/Upper.pm @@ -9,13 +9,13 @@ Scope::Upper - Act on upper scopes. =head1 VERSION -Version 0.15 +Version 0.16 =cut our $VERSION; BEGIN { - $VERSION = '0.15'; + $VERSION = '0.16'; } =head1 SYNOPSIS @@ -149,7 +149,7 @@ return values immediately to an upper level with L, and know which cont =item * -execute a subroutine in the context of an upper subroutine stack frame with L. +execute a subroutine in the setting of an upper subroutine stack frame with L. =back @@ -300,7 +300,7 @@ The code is executed in the context of the C call, and what it returns } my @inverses = target(1, 2, 4); # @inverses contains (0, 0.5, 0.25) - my $count = target(1, 2, 4); # $target is 3 + my $count = target(1, 2, 4); # $count is 3 L also implements a pure-Perl version of C. Both are identical, with the following caveats : @@ -336,7 +336,7 @@ will print "inner block: wut..." with L and "outer block: wut..." =item * -L globally overrides C, while L does not. +L globally overrides the Perl keyword C, while L does not. =back @@ -463,7 +463,7 @@ Where L, L and L point to depending on the C<$cxt>: ... # (*) Note that uplevel() will croak if you pass that scope frame, - # because it can't target eval scopes. + # because it cannot target eval scopes. =head1 EXPORT @@ -530,13 +530,13 @@ L, L. L, L, L, L. +L. + L is a thin wrapper around L that gives you a continuation passing style interface to L. It's easier to use, but it requires you to have control over the scope where you want to return. L. -L provides a pure-Perl implementation of L. - =head1 AUTHOR Vincent Pit, C<< >>, L.