in reply to Avoiding Greenspun's Rule; scripting within Perl
Many projects I've been writing lately have included the ability to use Javascript via JavaScript::V8. It is cheap and it is blazingly fast and if you are a web shop then you most likely have a team that already speaks Javascript.
I'd like to use perl as an embeded language inside of perl, but I have yet to see a safe (Safe.pm) locked down environment. Javascript isn't perfect as they could still consume all memory, or write an infinite loop, but there is no danger of it having access to more than I give it.
my @a=qw(random brilliant braindead); print $a[rand(@a)];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Avoiding Greenspun's Rule; scripting within Perl
by tobyink (Canon) on Mar 22, 2012 at 14:20 UTC | |
by Anonymous Monk on Mar 22, 2012 at 16:41 UTC |
In Section
Seekers of Perl Wisdom