title: In perl, how to connect to remote mongodb?
body: <p>Set up a db in mongoHQ, </p>
  
  <p>The mongo URI:</p>
  
  <pre><code>mongodb://&lt;user&gt;:&lt;password&gt;@staff.mongohq.com:10022/testdb
  </code></pre>
  
  <p>The mongodb connection as described by the perldoc mongodb:</p>
  
  <pre><code>my $connection = MongoDB::Connection-&gt;new(host =&gt; 'localhost', port =&gt; 27017);
  my $database   = $connection-&gt;foo;
  </code></pre>
  
  <p>If the user is: dbuser
  password is: dbpass</p>
  
  <p>What's connection string in perl?</p>
  
  <p>Thanks</p>