Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: MongoDB or Perl Data type?

by Mr. Muskrat (Canon)
on Aug 21, 2012 at 19:22 UTC ( #988834=note: print w/ replies, xml ) Need Help??


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)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988834]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2016-06-29 01:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My preferred method of making French fries (chips) is in a ...











    Results (365 votes). Check out past polls.