in reply to Re: Multiline regex
in thread Multiline regex

Wow, thank you. That was really helpful! I also looked at your example. I use TinyPerl 5.8 because it is very small, and I don't do a lot with it. Lately I have been playing around with graphics, and I wrote a very long Perl script, which I would like to cut up into smaller pieces (maybe). For this purpose, I want to write a script that analyzes my script and creates a list of dependencies that shows which function depends on which other function. This is why I wanted to know if a multiline regex can exist.

Replies are listed 'Best First'.
Re^3: Multiline regex
by Fletch (Bishop) on Dec 19, 2022 at 08:57 UTC

    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.