Michael G Schwern wrote in perl.perl6.language :
> On Tue, Apr 23, 2002 at 11:11:28PM -0500, Me wrote:
>> Third, I was thinking that having perl 6 regexen have /s on
>> by default would be easy for perl 5 coders to understand;
>> not too hard to get used to; and have no negative effects
>> for existing coders beyond getting used to the change.
>
> I'm jumping in the middle of a conversation here, but consider the
> problem of .* matching newlines by default and greediness.
>
> /(foo.*)$/, /(foo.*)$/m and /(foo.*)$/s
This is so old-fashioned.
> when matching against something like "foo\nwiffle\nbarfoo\n" One matches the
> last line. One matches the first line. And one matches all three lines.
And by the way, there's the semantic unaccuracy of $ matching
transparently newlines, combined with the obscure variants \z and \Z.
This needs (IMHO) some reshaping.
--
Rafael Garcia-Suarez
I'll better skip() some releases until it is() ok() to use Test::More
without() going insane(). Any more than I already am, that is().
-- Tels in the perl-qa mailing list