Re: Is that possible?

[email protected] ("David Golden")
Newsgroups perl.module.build
Message-ID <[email protected]>
On Mon, Sep 22, 2008 at 5:09 AM, Torsten Foertsch
<[email protected]> wrote:
> By the way, you haven't answered my initial question. What is
> the "right" way to do that in M::B?

This is Perl, so TIMTOWTDI.

Personally, I generally only override ACTION_ subroutines.  If I need
code from a private subroutine, I cut/paste it.  That insulates me
from future M::B changes to internal functions.

I have dozens of modules that generate external .pod files from
simpler markup in the .pm files.  If you look at
http://search.cpan.org/dist/Pod-WikiDoc/ and read the
Pod::WikiDoc::Cookbook file, you'll see an example of a Build.PL that
creates a subclass to do this.

However, rather than do that in Build.PL itself, I now usually create
the subclass in inc/Module/Build/WikiDoc.pm and just load that from
Build.PL.  That keeps my Build.PL uncluttered.  You can see an example
of how I do that in http://search.cpan.org/dist/CPAN-Mini-Devel/

-- David
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.