Ah, yes. I thought i tried that. But that might have been after commenting out the mkdir statement. The solution seems to be:
BEGIN {
mkdir '/tmp/pagecamel_helpers_javascript_inline';
$ENV{PERL_INLINE_DIRECTORY} = '/tmp/pagecamel_helpers_javascript_i
+nline';
};
use JavaScript::Duktape;
Thanks Corion!
As for JavaScript::DukTape: Yeah ideally this should compile at install-time. I'm currently trying out Inline::Module, to see it that would work with Duktape. If it does, i'll contact the original author and talk to them on how to proceed (send patches, take over module maintenance, whatever).
perl -e 'use Crypt::Digest::SHA256 qw[sha256_hex]; print substr(sha256_hex("the Answer To Life, The Universe And Everything"), 6, 2), "\n";'