Created
September 24, 2015 12:58
-
-
Save peterzawistowicz/fad1910b6035b617d1ce to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use MongoDB; | |
# OLD WAY | |
my $client = MongoDB::MongoClient->new( | |
host => "mongodb://h1.example.com/" | |
); | |
# NEW WAY | |
my $client = MongoDB->connect("mongodb://h1.example.com/"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment