Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^3: Parse POD of a method from perl module

by LanX (Saint)
on May 13, 2014 at 22:45 UTC ( [id://1085960]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Parse POD of a method from perl module
in thread Parse POD of a method from perl module

i.o.W. your input are
  • name of the head1
  • path of a module
and you just want the POD-content, no source code?

As mentioned ready-to-use solutions expect you to follow certain conventions!

But a simple perl-script to parse everything between =head1 NAME and =cut is straight forwardly implemented with a flip-flop range and easily adapted if your format has variations (different conventions¹)

Cheers Rolf

( addicted to the Perl Programming Language)

¹) e.g are you aware that your example is "invalid" POD b/c of missing empty lines?

Replies are listed 'Best First'.
Re^4: Parse POD of a method from perl module
by perlUser9 (Novice) on May 13, 2014 at 23:15 UTC
    Hi Rolf, I don't need the source code. Yes looks like it's better to write some code to parse my modules and retrieve everything between =head1 and =cut as per the method name. Thanks a ton for the help.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1085960]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2024-04-23 19:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found