Re: \z vs \Z vs $
[email protected] (Bart Lateur) Thu, 21 Sep 2000 13:08:23 +0200
| Newsgroups | perl.perl6.language.regex |
|---|---|
| Organization | MediaMind |
| Message-ID | <[email protected]> |
On Wed, 20 Sep 2000 15:16:20 -0600, Tom Christiansen wrote: >>That was my second thought. I kinda like it, because //s would have two >>effects: > >> + let . match a newline too (current) > >> + let /$/ NOT accept a trailing newline (new) > >Don't forget /s's other meaning. 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. 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. p.s. The mnemonic of //s (single line) would not make any sense any more. It never really did work. -- Bart.