![]() |
|
Clear questions and runnable code get the best and fastest answer |
|
PerlMonks |
Re: Extract subroutines from a Perl script. OR: "Only perl can parse Perl." But can it help me to do so?by hv (Prior) |
on Sep 24, 2004 at 10:57 UTC ( #393448=note: print w/replies, xml ) | Need Help?? |
If you need to extract the exact source code, it may be quite difficult. If it is sufficient to get a functional equivalent, look into B::Deparse; from the docs: and here's a specific example as a one-liner:
See the rest of the docs for full details of the options available. Hugo
In Section
Seekers of Perl Wisdom
|
|