http://www.perlmonks.org?node_id=393422


in reply to Re: Extract subroutines from a Perl script. OR: "Only perl can parse Perl." But can it help me to do so?
in thread Extract subroutines from a Perl script. OR: "Only perl can parse Perl." But can it help me to do so?

That is a rather complex set of modules. It seems that the documention is (as mentioned) still incomplete. But I thank you for the quick reply and I will play around with PPI for a while, to see if it fits my needs.

So, thank you, Anonymous Monk!




"2b"||!"2b";$$_="the question"
Besides that, my code is untested unless stated otherwise.
One more: please review the article about regular expressions (do's and don'ts) I'm working on.
  • Comment on Re^2: Extract subroutines from a Perl script. OR: "Only perl can parse Perl." But can it help me to do so?
  • Download Code