On Mon, Feb 28, 2005 at 08:12:20PM -0000, Dan Jacobson wrote: > # New Ticket Created by Dan Jacobson > # Please include the string: [perl #34287] > # in the subject line of all future correspondence about this issue. > # <URL: https://rt.perl.org/rt3/Ticket/Display.html?id=34287 > > > > perlfaq6.pod: "/m" allows caret and dollar to match next to a newline, > not just at the end of the string. > > Add: "You'll still need /mg if you want to match beyond the first > newline."!
I'm not quite sure what that sentence means, but I don't think it's accurate. For example, I could match beyond the first newline by doing this C</^(.+)$/ms> or this C</(?:^.+\n)+/m>. Ronald
