in reply to Automatic documentation stubs for .pl source
Why are you writing your own solution before searching for predictable tools already built? Get into the habit of using google.com, search.cpan.org, perlmonks.org super-search... before you start coding.
There's also a common saying, Nothing can parse Perl except perl. Trying to parse a few constrained varieties of Perl code with a few regular expressions will be an infinite task, chasing parse bugs and finding new valid syntax.
--
[ e d @ h a l l e y . c c ]
|
|---|