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

Discussion in 'Perl Misc' started by Dilbert, Dec 20, 2009.

  1. Dilbert

    Dilbert Guest

    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)

    ==================

    2,3c2,3
    < <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
    < <html>
    ---
    > <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    > <html xmlns="http://www.w3.org/1999/xhtml">

    5,10c5
    < <!-- 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="../../../
    scineplex.css">
    < <title>MyTest::program - My test for a program</title>
    ---
    > <title>MyTest::program</title>

    16a12,16
    > <table border="0" width="100%" cellspacing="0" cellpadding="3">
    > <tr><td class="block" valign="middle">
    > <big><strong><span class="block">&nbsp;MyTest::program</span></strong></big>
    > </td></tr>
    > </table>

    21,22d20
    < <script>writelinks('__top__',3);</script>
    < <h1><a>MyTest::program - My test for a program</a></h1>
    89a87
    > <a href="#__index__"><small>Back to Top</small></a>

    101a100
    > <a href="#__index__"><small>Back to Top</small></a>

    263a263
    > <a href="#__index__"><small>Back to Top</small></a>

    571a572
    > <a href="#__index__"><small>Back to Top</small></a>

    576a578
    > <a href="#__index__"><small>Back to Top</small></a>
    Dilbert, Dec 20, 2009
    #1
    1. Advertising

  2. Dilbert

    Dilbert Guest

    On 20 déc, 19:08, Dilbert <> wrote:
    > I have an issue with the Html that is generated with Module::Build. I
    > am using Win32 ActiveState Perl 5.10.1.


    After some investigation, I found the following code in
    http://cpansearch.perl.org/src/DAGOLDEN/Module-Build-0.35/lib/Module/Build/Base.pm
    ==============
    {
    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}; # <<==
    *** note the "::pod" ***
    __PACKAGE__->add_property(html_css => $Is_ActivePerl ?
    'Active.css' : '');
    }
    ==============
    Dilbert, Dec 20, 2009
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Vittorio

    Boxed Perl or ActiveState Perl?

    Vittorio, Apr 1, 2004, in forum: Perl Misc
    Replies:
    3
    Views:
    182
    GreenLight
    Apr 2, 2004
  2. doolittle
    Replies:
    3
    Views:
    109
    Brian Helterline
    Oct 27, 2006
  3. Bond
    Replies:
    4
    Views:
    333
    Dr.Ruud
    Aug 25, 2007
  4. Dilbert
    Replies:
    1
    Views:
    558
    sisyphus
    Mar 9, 2010
  5. Dilbert
    Replies:
    0
    Views:
    840
    Dilbert
    Nov 10, 2011
Loading...

Share This Page