in reply to Re^3: pattern matching once
in thread pattern matching once

With the // or ?? delimiters the m at the beginning is optional.

That was true until about 8 years ago. Now:

In the past, the leading m in m?PATTERN? was optional, but omitting it would produce a deprecation warning. As of v5.22.0, omitting it produces a syntax error. If you encounter this construct in older code, you can just add m.

Typo fix

Replies are listed 'Best First'.
Re^5: pattern matching once
by jwkrahn (Abbot) on Aug 11, 2023 at 20:03 UTC

    -- for perl golf :-(

    Naked blocks are fun! -- Randal L. Schwartz, Perl hacker