P is for Practical | |
PerlMonks |
Re: some questions about example 4 of perlxstutby syphilis (Archbishop) |
on Jun 30, 2019 at 14:11 UTC ( [id://11102177]=note: print w/replies, xml ) | Need Help?? |
Why when I run perl Makefile.PL on Mytest2 level, there also build a makefile on Mytest2/mylib directory? I think that's something that's done by EU::MM. When perl Makefile.PL is run, it seems that perl searches recursively through the directories below the current one, and executes all Makefile.PL files that it finds. If I create a Mytest2/bogus/Makefile.PL that contains simply warn "\nHello World\n"; then I see Hello World appear in the output when I run perl Makefile.PL in the Mytest2 directory. Also, if I remove Mytest2/mylib/Makefile.PL then its absence is not detected during the initial "perl Makefile.PL" step. I lookup on cpan, like gtk2, EV and Tk, It seems there are own way to do The gtk2 modules are faced with a challenge quite different to that of Example 4. With Example 4, the challenge is to access functionality that has been included with the Mylib2 source, whereas the gtk2 modules have to access functionality in the gtk2 libraries - which are 3rd party libraries not provided by the module's source distribution. The XS files provided by the gtk2 modules simply provide the glue that enables access to those external libraries, though they also rely on linking to those external libraries and on including their headers. Not sure about Tk or EV. For mine, the links provided by Anonymous Monk are more worthy of attention than this rather pathetic perlxstut that specifies ad-hoc code (not all of which can be copy'n'pasted), and reliance upon h2xs. I should add that I've never used (and likely never will use) h2xs, and am therefore perhaps not fully appreciative of what it has to offer. Cheers, Rob
In Section
Seekers of Perl Wisdom
|
|