# man > BSON::Array

---
type: CommandReference
command: BSON::Array
mode: perldoc
section: 3
source: perldoc
---

## Quick Reference

- `bson_array(...)` — Explicitly wrap a list of elements as a BSON array type, avoiding ambiguity with document containers.

## Name

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

## Synopsis

perl
use BSON::Types ':all';
my $array = bson_array(...);
## Examples

perl
use BSON::Types ':all';
my $array = bson_array(1, 2, 3);
## See Also

- [BSON::Types](http://localhost/phpMan.php/perldoc/BSON%3A%3ATypes/markdown)