Install libdata-javascript-perl by entering the following commands in the terminal:
sudo apt update sudo apt install libdata-javascript-perl
Description:
dump perl data structures into JavaScript code
Data::JavaScript is mainly inteded for CGI programming, when a perl script generates a page with client side JavaScript code that needs access to structures created on the server. . It works by creating one line of JavaScript code per datum. Therefore, structures cannot be created anonymously and need to be assigned to variables. However, this format enables dumping large structures.
Homepage: https://metacpan.org/release/Data-JavaScript
Version: 1.13-2
Section: universe/perl