1Mango::BSON::Code(3) User Contributed Perl Documentation Mango::BSON::Code(3)
2
3
4
6 Mango::BSON::Code - Code type
7
9 use Mango::BSON::Code;
10
11 my $code = Mango::BSON::Code->new(code => 'function () {}');
12
14 Mango::BSON::Code is a container for the BSON code type used by
15 Mango::BSON.
16
18 Mango::BSON::Code implements the following attributes.
19
20 code
21 my $js = $code->code;
22 $code = $code->code('function () {}');
23
24 JavaScript code.
25
26 scope
27 my $scode = $code->scope;
28 $code = $code->scope({foo => 'bar'});
29
30 Scope.
31
33 Mango::BSON::Code inherits all methods from Mojo::Base.
34
36 Mango, Mojolicious::Guides, <http://mojolicio.us>.
37
38
39
40perl v5.36.0 2022-07-22 Mango::BSON::Code(3)