It works like a charm. :)
By the way every time I try to compile the perl module I get an error
during the make:
perl_mongo.c:519: error: conflicting types for
'perl_mongo_serialize_long'
perl_mongo.h:92: error: previous declaration of
'perl_mongo_serialize_long' was here
perl_mongo.c:519: error: conflicting types for
'perl_mongo_serialize_long'
perl_mongo.h:92: error: previous declaration of
'perl_mongo_serialize_long' was here
So I had to replace into perl_mongo.h "long long" by "int64_t", and
after that it compiles. (probably it comes from my environment, it is
a crappy test machine...)