X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=README;h=89b77417af977c080d9690cb9780674053b8fd94;hb=1d30612dc39bd089cb54f07432fe6facaa09a8f5;hp=46c4cc0a43538bfefc7fea447853a189ba3abd98;hpb=eb7e09bd1e08678c96ad27e68c0ee401105992aa;p=perl%2Fmodules%2FScope-Upper.git diff --git a/README b/README index 46c4cc0..89b7741 100644 --- a/README +++ b/README @@ -2,7 +2,7 @@ NAME Scope::Upper - Act on upper scopes. VERSION - Version 0.20 + Version 0.22 SYNOPSIS "reap", "localize", "localize_elem", "localize_delete" and "WORDS" : @@ -273,11 +273,11 @@ FUNCTIONS unwind @values, $context; Returns @values *from* the subroutine, eval or format context pointed by - or just above $context, and immediately restart the program flow at this - point - thus effectively returning @values to an upper scope. If @values - is empty, then the $context parameter is optional and defaults to the - current context (making the call equivalent to a bare "return;") ; - otherwise it is mandatory. + or just above $context, and immediately restarts the program flow at + this point - thus effectively returning @values to an upper scope. If + @values is empty, then the $context parameter is optional and defaults + to the current context (making the call equivalent to a bare "return;") + ; otherwise it is mandatory. The upper context isn't coerced onto @values, which is hence always evaluated in list context. This means that @@ -295,7 +295,7 @@ FUNCTIONS yield @values, $context; Returns @values *from* the context pointed by or just above $context, - and immediately restart the program flow at this point. If @values is + and immediately restarts the program flow at this point. If @values is empty, then the $context parameter is optional and defaults to the current context ; otherwise it is mandatory. @@ -325,8 +325,8 @@ FUNCTIONS Immediately returns @values from the current block, whatever it may be (besides a "s///e" substitution context). "leave" is actually a synonym - for "unwind HERE", while "leave @values" is a synonym for "yield - @values, HERE". + for "yield HERE", while "leave @values" is a synonym for "yield @values, + HERE". Like for "yield", you can use the fifth value returned by "context_info" to handle context coercion. @@ -358,7 +358,7 @@ FUNCTIONS and format contexts. When $context is omitted, it defaults to the current context. - The values returned are, in order : + The returned values are, in order : * *(index 0)* : the namespace in use when the context was created ; @@ -738,7 +738,7 @@ CAVEATS version from Sub::Uplevel. DEPENDENCIES - perl 5.6. + perl 5.6.1. 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. @@ -785,7 +785,8 @@ ACKNOWLEDGEMENTS Thanks to Shawn M. Moore for motivation. COPYRIGHT & LICENSE - Copyright 2008,2009,2010,2011,2012 Vincent Pit, all rights reserved. + Copyright 2008,2009,2010,2011,2012,2013 Vincent Pit, all rights + reserved. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.