Alle has asked for the wisdom of the Perl Monks concerning the following question:
I have a question
I used perl's mongodb driver MongoDB(0.45),I insert a integer:
begin code----------------- use MongoDB; use MongoDB::OID; my $conn = MongoDB::Connection->new(); my $db = $conn->test; $db->id->insert({"id1"=>1,"id2"=>2}); end code-------------------
On the mongo shell,i found the "id1" and "id2" become:
But i want :> "id1" : NumberLong(1),"id2" : NumberLong(2)
Who can help me,thks? my os is 64 bit and mongodb version is v1.8.1"id1" : 1,"id2":2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MongoDB or Perl Data type?
by Mr. Muskrat (Canon) on Aug 21, 2012 at 19:22 UTC | |
by Alle (Novice) on Aug 22, 2012 at 02:49 UTC | |
by Anonymous Monk on Aug 22, 2012 at 02:59 UTC | |
|
Re: MongoDB or Perl Data type?
by Anonymous Monk on Aug 21, 2012 at 09:43 UTC | |
by Alle (Novice) on Aug 21, 2012 at 10:44 UTC | |
by Anonymous Monk on Aug 22, 2012 at 02:53 UTC |