in reply to Re: How @INC can be managed from c code?
in thread How @INC can be managed from c code?

Have you meant
av_push(PL_inc, newSVpv("/opt/myapp/lib", 15));
However, it can only be called after perl_parse() So maybe I'm on wrong way.

Replies are listed 'Best First'.
Re^3: How @INC can be managed from c code?
by Corion (Patriarch) on Apr 02, 2015 at 06:55 UTC

    Yeah, the results was a leftover from pasting together the code. I don't really do C, and don't interact much from C-space with the Perl interpreter, but I think you can call perl_parse() multiple times, just like -e does.