From: Vincent Pit Date: Tue, 17 Mar 2015 13:48:18 +0000 (-0300) Subject: Clarify the descriptions of ->gimme() and ->want() X-Git-Tag: v0.03~5 X-Git-Url: http://git.vpit.fr/?a=commitdiff_plain;h=0b046fc960c23b5e70852a3c19979a729e7361a7;p=perl%2Fmodules%2FScope-Context.git Clarify the descriptions of ->gimme() and ->want() --- diff --git a/lib/Scope/Context.pm b/lib/Scope/Context.pm index bf0f7c0..c57a830 100644 --- a/lib/Scope/Context.pm +++ b/lib/Scope/Context.pm @@ -232,7 +232,7 @@ Returns a boolean indicating whether a new instance of C<@_> was set up for this $cxt->gimme; -Returns the context (in the sense of L) in which the scope denoted by the invocant is executed. +Returns the context (in the sense of C : C for void context, C<''> for scalar context, and true for list context) in which the scope denoted by the invocant is executed. =head2 C @@ -306,7 +306,7 @@ BEGIN { my $want = $cxt->want; -Returns the Perl context (in the sense of C : C for void context, C<''> for scalar context, and true for list context) in which is executed the scope pointed by the invocant. +Returns the Perl context (in the sense of C) in which is executed the closest subroutine, eval or format enclosing the scope pointed by the invocant. =cut