I've yet to see a single module where it makes sense for it to be generated before the user tries to install it -- the author is supposed to do that before he uploads the distribution

See Linux::NFS::BigDir.

But, here's the secret, MyModuleGenerator(); WriteMakefile...

That will not work: I have declared prereqs that I need to generate the module. After Makefile.PL is executed, I should have them available and then the related code requires to have constant from C header files, which I can't (easily) figure out where they are (h2ph doesn't work properly).

So, short long story, I can't have Makefile.PL doing that for me (can't use or require something that is declared as a prereqs and is still not available).

I tried using the .PL file, but it is not generating the module (output) as implied here and it's running after the pm_to_lib.

I'm starting considering using Module::Build instead...

Alceu Rodrigues de Freitas Junior
---------------------------------
"You have enemies? Good. That means you've stood up for something, sometime in your life." - Sir Winston Churchill

In reply to Re^2: How to properly use ExtUtils::MakeMaker PL_FILES attribute? by glasswalk3r
in thread How to properly use ExtUtils::MakeMaker PL_FILES attribute? by glasswalk3r

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.