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