line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
71
|
|
|
71
|
|
23511
|
use 5.010001; |
|
71
|
|
|
|
|
220
|
|
2
|
71
|
|
|
71
|
|
332
|
use strict; |
|
71
|
|
|
|
|
135
|
|
|
71
|
|
|
|
|
1334
|
|
3
|
71
|
|
|
71
|
|
304
|
use warnings; |
|
71
|
|
|
|
|
125
|
|
|
71
|
|
|
|
|
2105
|
|
4
|
|
|
|
|
|
|
|
5
|
|
|
|
|
|
|
package BSON::Array; |
6
|
|
|
|
|
|
|
# ABSTRACT: BSON type wrapper for a list of elements |
7
|
|
|
|
|
|
|
|
8
|
71
|
|
|
71
|
|
345
|
use version; |
|
71
|
|
|
|
|
143
|
|
|
71
|
|
|
|
|
296
|
|
9
|
|
|
|
|
|
|
our $VERSION = 'v1.12.0'; |
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
sub new { |
12
|
1
|
|
|
1
|
0
|
3
|
my ( $class, @args ) = @_; |
13
|
1
|
|
|
|
|
4
|
return bless [@args], $class; |
14
|
|
|
|
|
|
|
} |
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
1; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
=pod |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
=encoding UTF-8 |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
=head1 NAME |
23
|
|
|
|
|
|
|
|
24
|
|
|
|
|
|
|
BSON::Array - BSON type wrapper for a list of elements |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
=head1 VERSION |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
version v1.12.0 |
29
|
|
|
|
|
|
|
|
30
|
|
|
|
|
|
|
=head1 SYNOPSIS |
31
|
|
|
|
|
|
|
|
32
|
|
|
|
|
|
|
use BSON::Types ':all'; |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
my $array = bson_array(...); |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
=head1 DESCRIPTION |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
This module provides a BSON type wrapper representing a list of elements. |
39
|
|
|
|
|
|
|
It is currently read-only. |
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
Wrapping is usually not necessary as an ordinary array reference is usually |
42
|
|
|
|
|
|
|
sufficient. This class is helpful for cases where an array reference could |
43
|
|
|
|
|
|
|
be ambiguously interpreted as a top-level document container. |
44
|
|
|
|
|
|
|
|
45
|
|
|
|
|
|
|
=for Pod::Coverage new |
46
|
|
|
|
|
|
|
|
47
|
|
|
|
|
|
|
=head1 AUTHORS |
48
|
|
|
|
|
|
|
|
49
|
|
|
|
|
|
|
=over 4 |
50
|
|
|
|
|
|
|
|
51
|
|
|
|
|
|
|
=item * |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
David Golden |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
=item * |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
Stefan G. |
58
|
|
|
|
|
|
|
|
59
|
|
|
|
|
|
|
=back |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
62
|
|
|
|
|
|
|
|
63
|
|
|
|
|
|
|
This software is Copyright (c) 2019 by Stefan G. and MongoDB, Inc. |
64
|
|
|
|
|
|
|
|
65
|
|
|
|
|
|
|
This is free software, licensed under: |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
The Apache License, Version 2.0, January 2004 |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
__END__ |