Skip to content

Commit 161cfb5

Browse files
authored
DOCS-12826 Fix perl connect to Atlas snippet (#511)
This page inherited a bug from the Atlas console connection snippet. This uses single quotes in the snippet so as not to interpolate a variable.
1 parent d0fb423 commit 161cfb5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/drivers/perl.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ To connect to a `MongoDB Atlas <https://docs.atlas.mongodb.com/>`_ cluster, use
5656
use MongoDB;
5757

5858
my $client = MongoDB->connect(
59-
"mongodb+srv://<username>:<password>@<cluster-address>/test?retryWrites=true&w=majority"
59+
'mongodb+srv://<username>:<password>@<cluster-address>/test?retryWrites=true&w=majority'
6060
);
6161
my $db = $client->get_database( 'test' );
6262

0 commit comments

Comments
 (0)