JavaScript::Error - Encapsulates errors thrown from JavaScript
The cause of the exception.
The name of the file that the caused the exception.
The line number in the file that caused the exception.
A stringification of the exception in the format $message at $line in $file
$message at $line in $file
Returns the stacktrace for the exception as a list of hashrefs containing function, file and lineno.
function
file
lineno
This class overloads stringification an will return the result from the method as_string.
as_string
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.