user1247066
user1247066

Reputation: 140

load perl .pm module from C module .so

I'm developing a perl extension module in C, I wanted to reuse a perl module (.pm) that i wrote. I googled and found that there's a way to call a perl subroutine from C code using the pv_call function but i can't find how to load the .pm moudle without reloading the perl interpreter. thank in advance

Upvotes: 2

Views: 240

Answers (1)

ikegami
ikegami

Reputation: 386396

Use eval_pv to evaluate use Module;.

Upvotes: 2

Related Questions