>I gather you're talking about //s making perl ignore the setting of $*.
>You're right, I didn't know that. But I doubt if it's that important,
>this variable already has been marked as deprecated since Perl5 came
>out, about 5 years ago. It's a good candiadte to be removed in Perl6.
Agreed.
>My point is: to most people, //s already mostly means "treat \n as an
>ordinary character". Let's draw this through, and make //s remove all
>special meanings of "\n", in particular WRT /$/.
>Then, there's the matter of combining //m and //s. It would have no
>effect in that case, because //m makes /$/ behave like /\n|\z/. //ms
>wouldn't change that.
Er, not quite. It's a lookahead.
/foo$/ is /foo(?=\n?\z)/
/foo$/m is /foo(?=\n|\z)/
or some such.
>p.s. The mnemonic of //s (single line) would not make any sense any
>more. It never really did work.
No, it never did. Camel-3 doesn't use it much/really.
Modifier Meaning
-------- -------
C</i> Ignore alphabetic case distinctions (case insensitive).
C</s> Let C<.> match newline and ignore deprecated C<$*>.
C</m> Let C<^> and C<$> match next to embedded C<\n>.
C</x> Ignore (most) whitespace and permit comments in pattern.
C</o> Compile pattern once only.
--tom