in reply to MongoDB or Perl Data type?

Cross-posted to http://www.mongodb.org/display/DOCS/Data+Types+and+Conventions

Replies are listed 'Best First'.
Re^2: MongoDB or Perl Data type?
by Alle (Novice) on Aug 22, 2012 at 02:49 UTC

    thank you,but no answer.

    the driver's author Kristina reply me with:

    'This is intentional, Perl saves all numbers as 64-bit integers on 64-bit platforms, and NumberLong is how the shell displays 64-bit numbers. See http://www.mongodb.org/display/DOCS/Overview+-+The+MongoDB+Interactive+Shell#Overview-TheMongoDBInteractiveShell-Numbers.'

    insert number using mongodb shell is ok,it just a basic number,but use perl driver MongoDB,it became NumberLong(*) ,who can help me?

      thank you,but no answer. the driver's author Kristina reply me with: 'This is intentional, Perl saves all numbers as 64-bit integers on 64-bit platforms, and NumberLong is how the shell displays 64-bit numbers. See http://www.mongodb.org/display/DOCS/Overview+-+The+MongoDB+Interactive+Shell#Overview-TheMongoDBInteractiveShell-Numbers.' insert number using mongodb shell is ok,it just a basic number,but use perl driver MongoDB,it became NumberLong(*) ,who can help me?

      I think you just got your answer, there is nothing you can do about it (short of writing your own MongoDB driver)