I'm sure there are more enlightened ways to do this, but my ignorant (and 100% untested) approach would be to use eval_pv to evaluate a string of Perl code within my C program.
As far as changing the working directory, at least in Unix, I'd just use chdir(2); no need to get perl involved for this.
the lowliest monk
In reply to Re: Perl Embedded: Setting %ENV, STDIN and Workingdirectory
by tlm
in thread Perl Embedded: Setting %ENV, STDIN and Workingdirectory
by esskar
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |