RapidApp::JSON::ScriptWithData
use RapidApp::JSON::ScriptWithData; use RapidApp::JSON::MixedEncoder 'encode_json'; $swd= RapidApp::JSON::ScriptWithData->new( 'function () {', 'blah(12345);', 'var b= foo(bar(', $self->getSomething, '));', 'var a=', { x=>1, y=>2, z=>3 }, ';', 'return baz(a, b);', '}' ); return encode_json($swd);
To install RapidApp, copy and paste the appropriate command in to your terminal.
cpanm
cpanm RapidApp
CPAN shell
perl -MCPAN -e shell install RapidApp
For more information on module installation, please visit the detailed CPAN module installation guide.