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

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.


-- 

Michael G. Schwern   <[EMAIL PROTECTED]>    http://www.pobox.com/~schwern/
Perl Quality Assurance      <[EMAIL PROTECTED]>         Kwalitee Is Job One
Consistency?  I'm sorry, Sir, but you obviously chose the wrong door.
        -- Jarkko Hietaniemi in <[EMAIL PROTECTED]>

Reply via email to