BSON::Raw(3pm)
β¨ BSON::Raw β it's giving pre-encoded BSON realness π
okay bestie, so this is BSON::Raw, a Perl module from the User Contributed Perl Documentation section (manual page 3pm, iykyk). It's a BSON type wrapper for pre-encoded BSON documents, and honestly? It's a whole mood. π¦
πΈ VERSION πΈ
version v1.12.2 β she's got a number and she's not afraid to use it π
π SYNOPSIS π
use BSON::Types ':all';
my $ordered = bson_raw( $bson_bytes );
look at her go. one line. iconic. β¨
π DESCRIPTION π
So this module hands you a BSON document wrapper for bytes that are already encoded as BSON. No decoding, no fuss, no drama β the bytes are the moment, periodt.
Real talk though: if you're just a regular end-user, you lowkey have no need for this. It's here for optimization purposes β specifically for MongoDB or other client libraries that wanna skip the extra steps. It's a backstage-pass kind of module. ποΈ
π«Ά ATTRIBUTES π«Ά
bsonβ a string holding a BSON-encoded document. The default isundef. (not me leaving it undefined bestie π)metadataβ a hash reference full of arbitrary metadata about the BSON document. The default isundef. yes, alsoundef. she likes to keep things open-ended. π
π AUTHORS π
the legends who made this happen, no cap:
- David Golden
<david@mongodb.com> - Stefan G.
<minimalist@lavabit.com>
π 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
free software? we love to see it. slay. π
and that's the whole page, bestie β this was BSON::Raw(3pm), rendered by perl v5.30.3 back on 2020-08-14. she's vintage but she's thriving. π
β
π¦ where this page comes from
- debian bookworm: libbson-perl 1.12.2-1 Β· Apache-2.0
- ubuntu jammy: libbson-perl 1.12.2-1 Β· Apache-2.0
- ubuntu noble: libbson-perl 1.12.2-1 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms