문제

I wrote a Perl module to create a binding for a shared library with h2xs. Simple and easy to do.

However, I would now like to include some Perl helper with this module. How do I go about doing this? I would assume it needs to go in the "blah.pm" file - but this file is generated by the build.

Is there an (easy) way to specify a body of code to be included in it?

도움이 되었습니까?

해결책

Put the helper code in a separate module e.g. Blah::Helper.pm. Use blah.pm from within Blah::Helper.pm

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top