On 9/7/06, Gabor Szabo <[EMAIL PROTECTED]> wrote:
On 9/7/06, chromatic <[EMAIL PROTECTED]> wrote:
> On Thursday 07 September 2006 00:51, Gabor Szabo wrote:
>
> > In one module where we had planty of examples I addeded a script that
> > would creata a Module::Name::Examples.pm that is a collection of the
> > example files in pod format. This modules gets installed so the examples
> > are right at hand.
> >
> > I am not sure if this was a good idea but I can think of exapanding it into
> > by adding some code that will split up the pm file to create the example
> > files.
>
> Pod::ToDemo, for example?

Sort of but not exactly.

As I can see in the SDL::Tutorial where Pod::ToDemo is in use,
there can be only one example perl .pm file and the real example is not
in the POD which means I have to duplicate the example in the text of the pod.

Here is the module where we generate a .pm file from the files in the
eg/ directory:
http://search.cpan.org/~ctrondlp/Win32-GuiTest-1_50.5/Examples.pm

Gabor

Reply via email to