There is Inline::Lua, although JS is probably more popular nowadays. In that vein, there is JavaScript::V8, JavaScript::Duktape, or even the pure-Perl JE, which is available in Debian as libje-perl.
Update:
use warnings; use strict; use JE; my $j = new JE; $j->eval(<<'MYJSCODE'); function foo (x) { return x / 10; } MYJSCODE my $rv = 0+$j->{foo}->(50); print "$rv\n"; # prints "5"
In reply to Re: Extending a perl program with Scheme, Lua, or JS
by haukex
in thread Extending a perl program with Scheme, Lua, or JS
by bcrowell2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |