nicholashubbard has asked for the wisdom of the Perl Monks concerning the following question:

With ExtUtils::MakeMaker, I would like to set the title of my manpage using pod2man's "--center" option. Unfortunately I cannot figure out how to do this. I have read through Makemakers doumentation but cannot find any mention of passing custom flags to pod2man. I noticed that in MakeMaker's outputted Makefile, there is a rule "manifypods" that handles creating the manpages with pod2man. However, I cannot figure out how to customize this rule. I noticed that pod2man is executed via a function "ExtUtils::Command::mm::pod2man, that does allow passing options, but I'm unsure of how I can gain control of this functions invocation. Does anybody know how I can do this? Does anybody know of any other projects that pass custom options to pod2man from ExtUtils::MakeMaker?
  • Comment on How to pass custom options to pod2man from Extutils::MakeMaker?

Replies are listed 'Best First'.
Re: How to pass custom options to pod2man from Extutils::MakeMaker?
by tonyc (Hermit) on Aug 10, 2025 at 22:09 UTC
      I was able to get this to work by overriding the manifypods subroutine with MY::manifypods subroutine. However, it is still unclear how to override POD2MAN_macro. Nothing in the documentation that was linked actually shows an example of how to do this.