X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FScope%2FUpper.pm;h=4a9010059f7ce5112af17d57452539ae17458ff8;hb=9f4e270a50090f065bbeebbcac06fd6b4297e45c;hp=ac254177da01cc448839ab2d38c3f6a8fcb5bd20;hpb=1cac52223ba0983d5d4007ab608fe4ea645eb037;p=perl%2Fmodules%2FScope-Upper.git diff --git a/lib/Scope/Upper.pm b/lib/Scope/Upper.pm index ac25417..4a90100 100644 --- a/lib/Scope/Upper.pm +++ b/lib/Scope/Upper.pm @@ -170,7 +170,7 @@ localize variables, array/hash values or deletions of elements in higher context =item * -return values immediately to an upper level with L and L, and know which context was in use then with L ; +return values immediately to an upper level with L, L and L, and know which context was in use then with L ; =item * @@ -340,6 +340,14 @@ Hence you can use it to return values from a C or a C block : Like for L, the upper context isn't coerced onto C<@values>. +=head2 C + + leave; + leave @values; + +Immediately returns C<@values> from the current block, whatever it may be (besides a C substitution context). +C is actually a synonym for C, while C is a synonym for C. + =head2 C my $want = want_at; @@ -638,7 +646,7 @@ Where L, L, L and L point to depending on t =head1 EXPORT -The functions L, L, L, L, L, L, L and L are only exported on request, either individually or by the tags C<':funcs'> and C<':all'>. +The functions L, L, L, L, L, L, L, L and L are only exported on request, either individually or by the tags C<':funcs'> and C<':all'>. The constant L is also only exported on request, individually or by the tags C<':consts'> and C<':all'>. @@ -653,7 +661,7 @@ our %EXPORT_TAGS = ( funcs => [ qw< reap localize localize_elem localize_delete - unwind yield + unwind yield leave want_at uplevel uid validate_uid @@ -718,7 +726,12 @@ Despite this shortcoming, this XS version of L should still run way fa =head1 DEPENDENCIES -L (standard since perl 5.006). +L 5.6. + +A C compiler. +This module may happen to build with a C++ compiler as well, but don't rely on it, as no guarantee is made in this regard. + +L (core since perl 5.006). =head1 SEE ALSO