Mango::BSON::Code - Code type
use Mango::BSON::Code; my $code = Mango::BSON::Code->new(code => 'function () {}');
Mango::BSON::Code is a container for the BSON code type used by Mango::BSON.
Mango::BSON::Code implements the following attributes.
my $js = $code->code; $code = $code->code('function () {}');
JavaScript code.
my $scode = $code->scope; $code = $code->scope({foo => 'bar'});
Scope.
Mango::BSON::Code inherits all methods from Mojo::Base.
Mango, Mojolicious::Guides, http://mojolicio.us.
To install Mango, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mango
CPAN shell
perl -MCPAN -e shell install Mango
For more information on module installation, please visit the detailed CPAN module installation guide.