I just compiled and run a hello world Perl extension,but I don’t know the principle.How does the .pm call .so?
I just compiled and run a hello world Perl extension,but I don’t know the
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
It doesn’t need to – the binary code defines some variables and functions in the module’s namespace, they can be used just like regular variables. The
.pmfile only needs to ensure that.sois loaded when it is needed. This is done by the DynaLoader module. By inheriting fromDynaLoaderyou make sure that your.sofile is loaded when an unknown method is called on your class.