in reply to Re^2: Regex: Embedded pattern-match modifiers: Empty (?) modifier
in thread Regex: Embedded pattern-match modifiers: Empty (?) modifier

Reported. Watch the thread for updates, currently it isn't clear whether the code will be fixed, or the docs.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^4: Regex: Embedded pattern-match modifiers: Empty (?) modifier
by khw (Acolyte) on Mar 23, 2019 at 18:37 UTC
    Perl 5.30 will change the documentation to Zero, and this will remain legal to accommodate machine generated code. A warning will be issued if the pattern is compiled within the scope of a "use re 'strict'" pragma. This will accommodate people who want to catch no-ops that are possibly typos.