From: Philip Newton Date: Sun, 1 Jul 2001 09:37:56 +0000 (+0200) Subject: Suggestion for mnemonic for $^N X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=ad83b128fe70663b30fda889dc59fe236e6794de;p=p5sagit%2Fp5-mst-13.2.git Suggestion for mnemonic for $^N Message-Id: <200107010733.KAA03920@taas.iki.fi> p4raw-id: //depot/perl@11073 --- diff --git a/pod/perlvar.pod b/pod/perlvar.pod index d70f22d..817f1e5 100644 --- a/pod/perlvar.pod +++ b/pod/perlvar.pod @@ -193,7 +193,10 @@ This variable is read-only and dynamically scoped to the current BLOCK. The text matched by the used group most-recently closed (i.e. the group with the rightmost closing parenthesis) of the last successful search -pattern. This is primarly used inside C<(?{...})> blocks for examining text +pattern. (Mnemonic: the (possibly) Nested parenthesis that most +recently closed.) + +This is primarly used inside C<(?{...})> blocks for examining text recently matched. For example, to effectively capture text to a variable (in addition to C<$1>, C<$2>, etc.), replace C<(...)> with