in reply to Re: multi-line RE question
in thread multi-line RE question

There is a simpler solution to setting $/ to undef as described in perlrun:

$ printf "Line1\nLine2\nLine3\n\nXYZ: Blah\n" | perl -0777pe "s|\nXYZ. ++\n||" Line1 Line2 Line3

Replies are listed 'Best First'.
Re^3: multi-line RE question
by Anonymous Monk on Aug 02, 2011 at 13:26 UTC
    Wow, thanks. I try to understand the magic...