This question shows research effort; it is useful and clear
17
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
$ perl --version
This is perl, v5.10.1 (*) built for x86_64-linux-gnu-thread-multi
$ echo -e "foo\nbar" > baz.txt
$ perl -p -e 's/foo\nbar/FOO\nBAR/m' baz.txt
foo
bar