| 1 | 71 | ▶ | use 5.010001; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 2 | 71 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 3 | 71 | ▶ | use warnings; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | |||
| 5 | package BSON::Array; | ||
| 6 | # ABSTRACT: BSON type wrapper for a list of elements | ||
| 7 | |||
| 8 | 71 | ▶ | use version; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 9 | 71 | our $VERSION = 'v1.12.2'; | |
| 10 | |||
| 11 | 1 | ▶ | sub new { |
|
Subroutine
new: called CC=1 SCAR=0.0
Pod
undocumented
| |||
| 12 | 1 | my ( $class, @args ) = @_; | |
| 13 | 1 | return bless [@args], $class; | |
| 14 | } | ||
| 15 | |||
| 16 | 71 | 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.2 | ||
| 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 <david@mongodb.com> | ||
| 54 | |||
| 55 | =item * | ||
| 56 | |||
| 57 | Stefan G. <minimalist@lavabit.com> | ||
| 58 | |||
| 59 | =back | ||
| 60 | |||
| 61 | =head1 COPYRIGHT AND LICENSE | ||
| 62 | |||
| 63 | This software is Copyright (c) 2020 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__ | ||