Subject: | SV warn message on use arrayref && IxHash in insert |
Hi, Kristina!
I have strange thing, if I use arrayref or Tie::IxHash in insert command:
my $insert_value = [
'_id' => "comments",
"seq" => 2
];
or
my $insert_value = Tie::IxHash->new ( '_id' => "comments", "seq" => 2 );
my $id = $mongo_collection->insert( $insert_value, {safe => 1});
both give me:
if all ok and doc inserted -
Attempt to free unreferenced scalar: SV 0x1009a5508.
if key duplcated and I got error -
Attempt to free unreferenced scalar: SV 0x100a15418 at
/opt/local/lib/perl5/5.14.0/Carp.pm line 79.
In case I use hashref all ok, I don`t see this messages.
Kind regards,
Dmitry.
--------
$uname -a
Darwin TravelMate.local 10.6.0 Darwin Kernel Version 10.6.0: Wed Nov 10 18:13:17 PST
2010; root:xnu-1504.9.26~3/RELEASE_I386 i386
$perl -v
This is perl 5, version 14, subversion 0 (v5.14.0) built for darwin-2level
$perl -MMongoDB -E'say $MongoDB::VERSION'
0.43