in reply to Perl Embedded: Setting %ENV, STDIN and Workingdirectory
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Perl Embedded: Setting %ENV, STDIN and Workingdirectory
by esskar (Deacon) on Jul 31, 2005 at 02:23 UTC |