0
代碼 -MongoDB的PERL給無差錯不能使用字符串作爲HASH裁判,而在使用「嚴格的裁判」
$col1->insert("_id" => '100',
"results" => {
"result" => "1",
"when" => "sunday"
}
);
錯誤是 -
Can't use string ("100") as a HASH ref while "strict refs" in use at /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi/MongoDB/Collection.pm line xyz.
這裏有什麼問題?
謝謝! – user837208