Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Where did the single-line (s) and multi-line (m) modifiers go?

0
Posted

Where did the single-line (s) and multi-line (m) modifiers go?

0

The “s” (single line) and “m” (multi-line) modifiers from Perl 5 were removed in Perl 6. The “s” modifier is no longer needed since the “.” metacharacter matches anything, including a new line, all of the time. (To match anything but a newline, use “\N”). The “m” modifier is no longer needed due to changes to the “^” and “$” metacharacters and the introduction of “^^” and “$$”.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123