@@ -6831,24 +6831,24 @@ Check the #! line, or manually feed your script into Perl yourself.
6831
6831
=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/
6832
6832
6833
6833
(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
6835
6835
regular expression pattern, is to escape each literal instance of it in
6836
6836
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
6839
6839
also be escaped to avoid confusing the parser, for example,
6840
6840
6841
6841
qr{abc\{def\}ghi}
6842
6842
6843
- Forcing literal C<{ > characters to be escaped will enable the Perl
6843
+ Forcing literal C<"{" > characters to be escaped will enable the Perl
6844
6844
language to be extended in various ways in future releases. To avoid
6845
6845
needlessly breaking existing code, the restriction is is not enforced in
6846
6846
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.
6848
6848
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
6850
6850
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
6852
6852
v5.20 did not warn until v5.26. By making the already-warned uses fatal
6853
6853
now, some of the planned extensions can be made to the language sooner.
6854
6854
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:
6861
6861
6862
6862
=item *
6863
6863
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
6865
6865
anchor the match to the beginning of a line.
6866
6866
6867
6867
=item *
6868
6868
6869
- as the first character following a C<| > indicating alternation.
6869
+ as the first character following a C<"|" > indicating alternation.
6870
6870
6871
6871
=item *
6872
6872
0 commit comments