DrMoisha has asked for the wisdom of the Perl Monks concerning the following question:
Dear monks, my question is as short as title:
How can I add directory to @INC from C code, when I'm embeding perl?
A little bit longer explanation. I have embeded perl in my c application, but I have problem, that even without xs_init() like here embedding perl functions with 'use()' I get error: Can't locate module-name.pm in @INC ... (@INC contains .) I understand, that it is because @INC is not iniialized automatically, so it is empty.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How @INC can be managed from c code?
by Corion (Patriarch) on Apr 01, 2015 at 13:26 UTC | |
by DrMoisha (Novice) on Apr 01, 2015 at 15:00 UTC | |
by Corion (Patriarch) on Apr 02, 2015 at 06:55 UTC | |
|
Re: How @INC can be managed from c code? ( runperl.c )
by Anonymous Monk on Apr 01, 2015 at 18:12 UTC | |
by DrMoisha (Novice) on Apr 03, 2015 at 15:35 UTC | |
|
Re: How @INC can be managed from c code?
by LanX (Saint) on Apr 01, 2015 at 13:49 UTC | |
by DrMoisha (Novice) on Apr 01, 2015 at 15:02 UTC | |
by LanX (Saint) on Apr 01, 2015 at 15:07 UTC |