How can I dynamically load perl extensions into the perl inline interpreter?

I embed a Perl interpreter in my C code (which is fun!).

I need to dynamically load perl extensions (an extension that extends perl written in C). When I run a perl script (using my built-in perl interpreter) that should use this extension, it will work!

+3
source share
1 answer

Be sure to pass in a xs_initfunction perl_parsethat will provide you DynaLoader::boot_DynaLoader. You can write them automatically with ExtUtils::Embed.

, , , , eval , , C.

Perl, C, C perlembed .

+6

Source: https://habr.com/ru/post/1767752/


All Articles