Skip to content

Commit e6b8756

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

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pod/perlop.pod

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2272,6 +2272,8 @@ 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<//> and C<m//>, but not to C<qr//>.)
2276+
22752277
If the I<PATTERN> evaluates to the empty string, the last
22762278
I<successfully> matched regular expression in the current dynamic
22772279
scope is used instead (see also L<perlvar/Scoping Rules of Regex Variables>).

0 commit comments

Comments
 (0)