JavaScript::Function - Reference to a JavaScript function
Functions in JavaScript are actually Function-objects. This class encapsulates them and make them invokeable as a code-reference from Perl.
Function
Returns an code-reference that can be invoked which calls the underlying JavaScript Function-object.
Instances of this class overloads &{} which means that you can use the instance as a code-reference directlly without having to use as_function.
&{}
as_function
To install JavaScript, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JavaScript
CPAN shell
perl -MCPAN -e shell install JavaScript
For more information on module installation, please visit the detailed CPAN module installation guide.