jpl has asked for the wisdom of the Perl Monks concerning the following question:
Having just told relientmark not to worry about efficiency (Doing perl efficiently), I confess to resorting to embedding C code when performance really matters. I'd like to document the code with pod, but separating the pod from the code in a separate file is a recipe for having them drift out of sync. So I'd like to keep the pod as C comments, and run a script to split them out to generate pure pod. I thought there might be some common commenting convention that has already been adopted, but searches here and in CPAN and on google didn't turn anything up.
I could write plain old pod up against the left margin within a comment (and do something to prevent */ within it from terminating the comment), but not being able to indent the comments at the same level as the code is visually disruptive (aka ugly). I can invent my own conventions for introducing and terminating blocks of pod, but I'd prefer to use a "standard", if such a thing exists. Does it?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Embedding pod in C
by John M. Dlugosz (Monsignor) on May 18, 2011 at 15:12 UTC | |
by jpl (Monk) on May 18, 2011 at 15:27 UTC | |
by JavaFan (Canon) on May 18, 2011 at 16:20 UTC | |
by jpl (Monk) on May 18, 2011 at 17:13 UTC | |
by John M. Dlugosz (Monsignor) on May 18, 2011 at 18:49 UTC | |
by jpl (Monk) on May 18, 2011 at 17:25 UTC | |
Re: Embedding pod in C
by LanX (Saint) on May 18, 2011 at 15:39 UTC | |
by John M. Dlugosz (Monsignor) on May 18, 2011 at 18:55 UTC | |
by LanX (Saint) on May 18, 2011 at 20:03 UTC | |
by John M. Dlugosz (Monsignor) on May 18, 2011 at 20:45 UTC | |
Re: Embedding pod in C
by wazoox (Prior) on May 19, 2011 at 21:50 UTC |