Think about Loose Coupling | |
PerlMonks |
Re: MakeMaker, h2xs, and writing CPAN modulesby demerphq (Chancellor) |
on Jun 24, 2002 at 11:17 UTC ( [id://176740]=note: print w/replies, xml ) | Need Help?? |
Hi Perrin, Ive had similar issues as you are discussing here, and the approach ive come up with to work around them is as follows:
Once all of this is done,(assuming i havent forgotten some niggling but important detail) your module should be _both_ useable as normal and usable as per make. Thus once you are happy with the module you should be able to say A caveat however: this technique has the problem that you can only be developing 1 module at a time in each path/class heirarchy. Ie you cant work on Foo::Bar and Foo::Baz at the same time (the makefiles and etc would overwrite each other.) To be honest, normally I develop a module in the devlib _without_ using h2xs first. Then I use h2xs and copy everything but the autogenerated .pm file into the appropriate directory. As always with advice like this: YMMV
Yves / DeMerphq
In Section
Seekers of Perl Wisdom
|
|