JSPL::Script - Encapsulates pre-compiled JavaScript code.
If you have a big script that has to be executed over and over again compilation time may be significant. The method compile in JSPL::Context provides a mean of returning a pre-compiled script which is an instance of this class which can be executed without the need of compilation.
compile
JSPL::Context
Executes the script and returns the result of the last statement.
To install JSPL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JSPL
CPAN shell
perl -MCPAN -e shell install JSPL
For more information on module installation, please visit the detailed CPAN module installation guide.