Skip to content

perlop: Clarify empty pattern section not valid for qr// #23411

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: blead
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions pod/perlop.pod
Original file line number Diff line number Diff line change
Expand Up @@ -2272,6 +2272,8 @@ The bottom line is that using C</o> is almost never a good idea.

=item The empty pattern C<//>

(This subsection applies to C<//> and C<m//>, but not to C<qr//>.)

If the I<PATTERN> evaluates to the empty string, the last
I<successfully> matched regular expression in the current dynamic
scope is used instead (see also L<perlvar/Scoping Rules of Regex Variables>).
Expand Down
Loading