こんにちは、perl を使用して mongodb にクエリを実行しています。カーソルが戻ってきたら、ドキュメントを json 形式で印刷するにはどうすればよいですか
{ "_id" : ObjectId("51fdbfefb12a69cd35000502"), "biography" : "Colombian pop singer, born on February 2, 1977 to a Colombian mother of Spanish-Italian descent and an American father of Lebanese-Italian descent. Shakira is known for a high IQ and is fluent in Spanish, English, Italian and Portuguese.\r\rWriting songs and belly-dancing since childhood, her first album was released when she was a mere 14 years old. Other Spanish-language albums followed, each faring better than its predecessor, but it was not until 2001 that she achieved a world-wide breakthrough with the English-language \"Laundry Service\" album.\r", "imguri" : "http://api.discogs.com/image/A-5530-1218936486.jpeg", "index" : "shakira", "name" : "Shakira", "ready" : "yes", "requests" : "0"}
mongoDBモジュールに関数が表示されないので、このようなことを試してみてください
run_command({printjson => $foo});
しかし、printjsonは関数ではないと言っています
私に何ができる
ありがとう