Glenn Linderman wrote:
> Then it might be easier to write modules that are testable without a test
> driver. If you run the module directly, some distinguished block of code
> could be executed that wouldn't be if the module were "included" via
> "require" or "use" (or similar replacement constructs).
You mean like C<unless caller> ? (Try it.)
> Module also allows new semantics and/or syntax to be applied to POD
> directives, I would think, so it could be reworked or extended without
> incompatibility. New POD processors would note the module directive, and
> adjust accordingly.
Hopefully this issue becomes too trivial to mention,
by virtue of Perl being parsable by things other than perl,
and by the introduction of a powerful, highly integrated
preprocessor. I like POD, but it needs to be evolved to
the point where it's not just about POD any more.
--
John Porter