4 ms·
"/n"? What's that? My `man perlre' doesn't say anything about this regexp flag.
by dozzie 9y ago
"/n"? What's that? My `man perlre' doesn't say anything about this regexp flag.
- tribby 9y agobecause OP is referring to escape characters I assume it is a typo for "\n"
- jwilk 9y agoProbably not what rflrob meant, but /n prevents parentheses from capturing. https://perldoc.perl.org/perlre.html#%2an%2a https://perldoc.perl.org/perlre.html#%2an%2a
- dozzie 9y agoThis is somewhat surprising. A relatively new feature, and not present in my current Perl.