Welcome to the Monastery | |
PerlMonks |
Automatic documentation stubs for .pl sourceby Foggy Bottoms (Monk) |
on Aug 26, 2003 at 15:23 UTC ( [id://286744]=perlquestion: print w/replies, xml ) | Need Help?? |
Foggy Bottoms has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks, I've come to this point where it's high time I wrote some documentation for the couple of files I've written so far. I was thinking of using a tool very much like Javadoc so I set myself to writing one up, in a rather simple way where it'd take a .pl file, detect the subs, keep the sub names and add them to the HTML file... I wanted to take a line, eg sub myFunction # this function does blablabla and solely retrieve the first part, from sub till #... I wrote the following expression which can probably be simplified : How can I reduce the 2 ifs to a one-liner ? Thanks for your insight... But then again, I assume a perl2html parser already exists, so could someone please tell me if there's such a package somewhere ? Thanks all 20030827 Edit by jeffa: Changed title from 'regular expression help '
Back to
Seekers of Perl Wisdom
|
|