Html issue with Module::Build (Win32 ActiveState Perl)

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I have an issue with the Html that is generated with Module::Build. I
am using Win32 ActiveState Perl 5.10.1.

To install new modules from CPAN, I used to do ExtUtils::MakeMaker /
perl Makefile.PL / nmake / nmake test / nmake install. ==> everything
works fine and the new Html documentation integrates seamlessly into
the existing documentation.

Now I want to use Module::Build to install modules, so I do perl
Build.PL / Build / Build test / Build install. ==> the module itself
installs ok, but the Html is created differently. In fact the header
in the Html file with Module::Build is much smaller than it is in the
Html file with ExtUtils::MakeMaker.

How can I configure Module::Build to produce Html that is *identical*
to what is produced by MakeMaker ?

Here is the diff between the Html files produced by
ExtUtils::MakeMaker and by Module::Build
(the "DTD HTML 4.0 Transitional" is created by ExtUtils::MakeMaker
and the "DTD XHTML 1.0 Strict" is created by Module::Build)


< <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
< <html>
Quoted text here. Click to load it
< <!-- saved from url=(0017)http://localhost/ -->
< <script language="JavaScript" src="../../../displayToc.js"></script>
< <script language="JavaScript" src="../../../tocParas.js"></script>
< <script language="JavaScript" src="../../../tocTab.js"></script>
< <link rel="stylesheet" type="text/css" href="../../../
< <title>MyTest::Program - My test for a program</title>
Quoted text here. Click to load it
< <script>writelinks('__top__',3);</script>
< <h1><a>MyTest::Program - My test for a program</a></h1>
Quoted text here. Click to load it

Re: Html issue with Module::Build (Win32 ActiveState Perl)

Quoted text here. Click to load it

After some investigation, I found the following code in /=
  my $Is_ActivePerl = eval {require ActivePerl::DocTools};
  __PACKAGE__->add_property(html_css => $Is_ActivePerl ?
'Active.css' : '');

Knowing that "ActivePerl::DocTools" does *not* exist in ActiveState
Perl, *** only "ActivePerl::DocTools::Pod" does ***, would that code
not better be written as:

  my $Is_ActivePerl = eval {require ActivePerl::DocTools::Pod}; # <<=3D=
*** note the "::Pod" ***
  __PACKAGE__->add_property(html_css => $Is_ActivePerl ?
'Active.css' : '');

Site Timeline