Re^4: Do Pure Perl CPAN packages really need to use ExtUtils::Command::MM?by ELISHEVA (Prior)
|on Feb 18, 2011 at 00:27 UTC||Need Help??|
I want to ++ this a thousand times tonight. This worked! I totally missed the "MY::post_initialize" when I was reading the docs and studying the source code yesterday.
I had to modify it slightly so I didn't clobber the user's settings. Some people install CPAN software into their home dir and may be using PERL5LIB to add those to their module search path.
Update: After grepping through the code one more time I found where this is documented:ExtUtils::MM::Unix. I do remember reading it yesterday, but when I read the documentation I didn't connect the dots:
Returns an empty string per default. Used in Makefile.PLs to add some chunk of text to the Makefile after the object is initialized.
The object, what object? Thanks once again.
Update: added comment about portable way to append paths to PERL5LIB
Update: updated with resolution portability issue