develooper Front page | perl.perl5.porters | Postings from July 2001

[PATCH perlsnap] Suggestion for mnemonic for $^N

Thread Next
From:
Philip Newton
Date:
July 1, 2001 00:33
Subject:
[PATCH perlsnap] Suggestion for mnemonic for $^N
Message ID:
perl.perl5.porters-39483@nntp.perl.org
Patch 11038 added support for $^N, but the description in perlvar did
not include a mnemonic. (Possibly because caret variables are getting
so scarce that nowadays they tend to get picked by availability, not
because the letter stands for anything in particular, at least not
without some stretch of the imagination.) Still, here's a suggestion
for a mnemonic. This is open for discussion, as it's only something I
thought of and may not fit. Feel free not to apply it (for example, if
you think the explanation is bad, badly worded, or not necessary).

--- pod/perlvar.pod.orig        Sat Jun 30 14:55:38 2001
+++ pod/perlvar.pod     Sun Jul  1 07:22:54 2001
@@ -193,7 +193,10 @@

 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

End of patch.

Cheers,
Philip
-- 
Philip Newton <Philip.Newton@gmx.net>

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About