Skip to content

Commit 8116c49

Browse files
committed
perlop: Clarify empty pattern section not valid for qr//
Fixes GH #23410
1 parent dddbfc6 commit 8116c49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pod/perlop.pod

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,9 @@ The bottom line is that using C</o> is almost never a good idea.
22722272

22732273
=item The empty pattern C<//>
22742274

2275+
(This subsection applies to C<//>, C<m//>, and C<s///>, but not to
2276+
C<qr//>.)
2277+
22752278
If the I<PATTERN> evaluates to the empty string, the last
22762279
I<successfully> matched regular expression in the current dynamic
22772280
scope is used instead (see also L<perlvar/Scoping Rules of Regex Variables>).

0 commit comments

Comments
 (0)