Skip to content

Commit f50fa03

Browse files
committed
perldiag: Alphabetize two entries
The order of these was swapped
1 parent c217aa7 commit f50fa03

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

pod/perldiag.pod

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -6464,9 +6464,10 @@ C<undef *foo>.
64646464
(A) You've accidentally run your script through B<csh> instead of Perl.
64656465
Check the #! line, or manually feed your script into Perl yourself.
64666466

6467-
=item Unescaped left brace in regex is passed through in regex; marked by S<<-- HERE> in m/%s/
6467+
=item Unescaped left brace in regex is illegal here in regex;
6468+
marked by S<<-- HERE> in m/%s/
64686469

6469-
(W regexp) The simple rule to remember, if you want to
6470+
(F) The simple rule to remember, if you want to
64706471
match a literal C<"{"> character (U+007B C<LEFT CURLY BRACKET>) in a
64716472
regular expression pattern, is to escape each literal instance of it in
64726473
some way. Generally easiest is to precede it with a backslash, like
@@ -6481,9 +6482,8 @@ language to be extended in various ways in future releases. To avoid
64816482
needlessly breaking existing code, the restriction is is not enforced in
64826483
contexts where there are unlikely to ever be extensions that could
64836484
conflict with the use there of C<"{"> as a literal. Those that are
6484-
not potentially ambiguous do not warn; those that are raise this
6485-
warning. This makes sure that an inadvertent typo doesn't silently
6486-
cause the pattern to compile to something unintended.
6485+
not potentially ambiguous do not warn; those that are do raise a
6486+
non-deprecation warning.
64876487

64886488
The contexts where no warnings or errors are raised are:
64896489

@@ -6514,15 +6514,14 @@ as the first character following a quantifier
65146514
=back
65156515

65166516
=for comment
6517-
The text of the message above is duplicated below to allow splain (and
6518-
'use diagnostics') to work. Since one is fatal, and one not, they can't
6519-
be combined as one message. Perhaps perldiag could be enhanced to
6520-
handle this case.
6517+
The text of the message above is mostly duplicated below (with changes)
6518+
to allow splain (and 'use diagnostics') to work. Since one is fatal,
6519+
and one not, they can't be combined as one message. Perhaps perldiag
6520+
could be enhanced to handle this case.
65216521

6522-
=item Unescaped left brace in regex is illegal here in regex;
6523-
marked by S<<-- HERE> in m/%s/
6522+
=item Unescaped left brace in regex is passed through in regex; marked by S<<-- HERE> in m/%s/
65246523

6525-
(F) The simple rule to remember, if you want to
6524+
(W regexp) The simple rule to remember, if you want to
65266525
match a literal C<"{"> character (U+007B C<LEFT CURLY BRACKET>) in a
65276526
regular expression pattern, is to escape each literal instance of it in
65286527
some way. Generally easiest is to precede it with a backslash, like
@@ -6537,8 +6536,9 @@ language to be extended in various ways in future releases. To avoid
65376536
needlessly breaking existing code, the restriction is is not enforced in
65386537
contexts where there are unlikely to ever be extensions that could
65396538
conflict with the use there of C<"{"> as a literal. Those that are
6540-
not potentially ambiguous do not warn; those that are do raise a
6541-
non-deprecation warning.
6539+
not potentially ambiguous do not warn; those that are raise this
6540+
warning. This makes sure that an inadvertent typo doesn't silently
6541+
cause the pattern to compile to something unintended.
65426542

65436543
The contexts where no warnings or errors are raised are:
65446544

0 commit comments

Comments
 (0)