> perlfaq6.pod: "/m" allows caret and dollar to match next to a newline,
>         not just at the end of the string.

OK, add "Remember also /g if you want to match more than once."

D> Can you describe the code you were using that you found confusing?

$_="a\na\n"; s/a/1/mg; print

D> perlre (which the preceeding sentence directs you to).

Perhaps there too at the /m discussion add such a reminder.

Reply via email to