logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

BSON::String - BSON type wrapper for strings

Attributes

value
       A scalar value, which will be stringified during construction.  The default is the empty string.

Authors

       •   David Golden <david@mongodb.com>

       •   Stefan G. <minimalist@lavabit.com>

Description

       This module provides a BSON type wrapper for a string value.

       Since Perl does not distinguish between numbers and strings, this module provides an explicit string type
       for a scalar value.

Methods

TO_JSON
       Returns value as a string.

Name

       BSON::String - BSON type wrapper for strings

Overloading

       The stringification operator ("") is overloaded to return the "value", the full "minimal set" of
       overloaded operations is provided (per overload documentation) and fallback overloading is enabled.

Synopsis

           use BSON::Types ':all';

           bson_string( $string );

Version

       version v1.12.2

See Also