in reply to Re^2: Multiline regex
in thread Multiline regex

Rather than reimplementing something to try and (most likely, poorly and/or incompletely) parse Perl let it do it for you with B::Xref.

The cake is a lie.
The cake is a lie.
The cake is a lie.