laziness, impatience, and hubris | |
PerlMonks |
Re: Perl Embedded: Setting %ENV, STDIN and Workingdirectoryby tlm (Prior) |
on Jul 30, 2005 at 23:09 UTC ( [id://479657]=note: print w/replies, xml ) | Need Help?? |
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 Section
Seekers of Perl Wisdom
|
|