man > BSON::Array

📛 NAME

BSON::Array - BSON type wrapper for a list of elements

🚀 Quick Reference

Use CaseCommandDescription
💡 Create a BSON arraymy $arr = bson_array(1,2,3);Wrap a list as a BSON array object
🔍 Get underlying Perl arraymy $ref = $arr->value;Retrieve the array reference
đŸ›Ąī¸ Explicit typing in documentsbson_doc(key => bson_array(...));Prevent ambiguity between array and document

🔖 VERSION

version v1.12.2

📜 SYNOPSIS

    use BSON::Types ':all';

    my $array = bson_array(...);

📖 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.

đŸ‘Ĩ AUTHORS

ÂŠī¸ 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


BSON::Array
📛 NAME 🚀 Quick Reference 🔖 VERSION 📜 SYNOPSIS 📖 DESCRIPTION đŸ‘Ĩ AUTHORS ÂŠī¸ COPYRIGHT AND LICENSE

Generated by phpman v4.9.25-4-g0d844aa · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-07 07:50 @216.73.217.93
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!
Enhanced by LLM: deepseek-v4-pro / taotoken.net / www.chedong.com - original format