Keep It Simple, Stupid | |
PerlMonks |
Setting the build directory for a module using Inline::Cby cavac (Parson) |
on Apr 04, 2022 at 12:54 UTC ( [id://11142664]=perlquestion: print w/replies, xml ) | Need Help?? |
cavac has asked for the wisdom of the Perl Monks concerning the following question: This might be a stupid question, but i have a small issue with JavaScript::Duktape which uses Inline::C. I want to set the build directory "_Inline" to some other path, so i don't have build directories littered all over the place on my development system. The docs for Inline.pm say to set the PERL_INLINE_DIRECTORY environment variable. I assumed i could just set it in a BEGIN block before use of the Duktape module. But i can't get it to work.
I thought this would just set the environment variable, load JavaScript::Duktape (with the variable still intact) which in turn does all the Inline::C magic. Am i doing something incredible stupid here? Disclaimer: I know that using /tmp is insecure. This will get a proper logic where to place the directory securely. I'm just using /tmp because it simplifies the proof of concept.
perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'
Back to
Seekers of Perl Wisdom
|
|