in reply to How @INC can be managed from c code?
I think that @INC is just another Perl variable. You could either run Perl code to populate @INC:
push @INC, '/opt/myapp/lib';
... or you could do the same in C:
AV * PL_inc = get_av("INC",0); if( ! PL_inc ) { Perl_croak(aTHX_ "@INC not found from C code?!"); }; av_push(results, newSVpv("/opt/myapp/lib"));
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How @INC can be managed from c code?
by DrMoisha (Novice) on Apr 01, 2015 at 15:00 UTC | |
by Corion (Patriarch) on Apr 02, 2015 at 06:55 UTC |