| Use Case | Command | Description |
|---|---|---|
| đĻ Create a BSON string | my $bson_str = bson_string("hello"); | Wraps a Perl string into an explicit BSON string type |
| đ Access the value | my $val = $bson_str->value; | Returns the underlying string scalar |
| đ¨ī¸ String interpolation | print "$bson_str"; | Overloaded "" gives the string value |
| đ JSON serialization | my $json = $bson_str->TO_JSON; | Returns the value as a JSON string |
| đī¸ Use with BSON::Types | use BSON::Types ':all'; | Imports bson_string and other helpers |
use BSON::Types ':all';
bson_string( $string );
"") is overloaded to return the value, the full "minimal set" of
overloaded operations is provided (per overload documentation) and fallback overloading is
enabled.
Generated by phpman v4.9.25-4-g0d844aa · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-07 09:08 @216.73.217.93
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-pro / taotoken.net / www.chedong.com - original format