Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 7d35067

Browse files
khwilliamsonrurban
authored andcommitted
perldiag: Add some double quotes
There are two areas of text, supposedly identical, and used because of splain. They had drifted apart slightly, so this brings them back to consistency. (cherry picked from commit 21792e6)
1 parent 77fa578 commit 7d35067

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

pod/perldiag.pod

+9-9
Original file line numberDiff line numberDiff line change
@@ -6831,24 +6831,24 @@ Check the #! line, or manually feed your script into Perl yourself.
68316831
=item Unescaped left brace in regex is deprecated here (and will be fatal in Perl 5.32), passed through in regex; marked by S<<-- HERE> in m/%s/
68326832

68336833
(D deprecated, regexp) The simple rule to remember, if you want to
6834-
match a literal C<{> character (U+007B C<LEFT CURLY BRACKET>) in a
6834+
match a literal C<"{"> character (U+007B C<LEFT CURLY BRACKET>) in a
68356835
regular expression pattern, is to escape each literal instance of it in
68366836
some way. Generally easiest is to precede it with a backslash, like
6837-
C<\{> or enclose it in square brackets (C<[{]>). If the pattern
6838-
delimiters are also braces, any matching right brace (C<}>) should
6837+
C<"\{"> or enclose it in square brackets (C<"[{]">). If the pattern
6838+
delimiters are also braces, any matching right brace (C<"}">) should
68396839
also be escaped to avoid confusing the parser, for example,
68406840

68416841
qr{abc\{def\}ghi}
68426842

6843-
Forcing literal C<{> characters to be escaped will enable the Perl
6843+
Forcing literal C<"{"> characters to be escaped will enable the Perl
68446844
language to be extended in various ways in future releases. To avoid
68456845
needlessly breaking existing code, the restriction is is not enforced in
68466846
contexts where there are unlikely to ever be extensions that could
6847-
conflict with the use there of C<{> as a literal.
6847+
conflict with the use there of C<"{"> as a literal.
68486848

6849-
In this release of Perl, some literal uses of C<{> are fatal, and some
6849+
In this release of Perl, some literal uses of C<"{"> are fatal, and some
68506850
still just deprecated. This is because of an oversight: some uses of a
6851-
literal C<{> that should have raised a deprecation warning starting in
6851+
literal C<"{"> that should have raised a deprecation warning starting in
68526852
v5.20 did not warn until v5.26. By making the already-warned uses fatal
68536853
now, some of the planned extensions can be made to the language sooner.
68546854
The cases which are still allowed will be fatal in Perl 5.30 or 5.32,
@@ -6861,12 +6861,12 @@ The contexts where no warnings or errors are raised are:
68616861

68626862
=item *
68636863

6864-
as the first character in a pattern, or following C<^> indicating to
6864+
as the first character in a pattern, or following C<"^"> indicating to
68656865
anchor the match to the beginning of a line.
68666866

68676867
=item *
68686868

6869-
as the first character following a C<|> indicating alternation.
6869+
as the first character following a C<"|"> indicating alternation.
68706870

68716871
=item *
68726872

0 commit comments

Comments
 (0)