See also Text::Balanced and its extract_quotelike: http://search.cpan.org/~shay/Text-Balanced-2.03/lib/Text/Balanced.pm#extract_quotelike
David On Tue, Jun 13, 2017 at 7:23 AM, Paul Johnson <p...@pjcj.net> wrote: > On Tue, Jun 13, 2017 at 02:03:10PM +0300, Lars Noodén wrote: > > There are a lot of ways to write patterns. > > > Is there a module or method that can identify and extract them from a > > larger bit of code regardless of style? > > That's not an easy problem. Fortunately, there is a module which will > probably do what you want: PPI. See https://metacpan.org/pod/PPI > > -- > Paul Johnson - p...@pjcj.net > http://www.pjcj.net > > -- > To unsubscribe, e-mail: beginners-unsubscr...@perl.org > For additional commands, e-mail: beginners-h...@perl.org > http://learn.perl.org/ > > > -- "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." -- Brian Kernighan