I can confirm that your test case works as expected on my system. It appears that your issue is not Mango related.
On Fri, Jan 24, 2014 at 1:23 AM, kthakore <[email protected]> wrote: > Hi Mojo users, > > I am trying to understand why the last statement in this code is return 0 > instead of 1. > > use Mango; >> >> my $mango = Mango->new('mongodb://localhost:27017'); >> >> my $db = $mango->db('test'); >> >> my $coll = $db->collection('c'); >> >> $coll->insert({"f" => "a" }); >> >> my $list = $coll->find()->all(); >> >> print scalar @{$list}; >> #1 >> >> print $coll->find()->count(); >> #0 >> >> > What am I not understanding? > > Thank you in advance > > -- > You received this message because you are subscribed to the Google Groups > "Mojolicious" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/mojolicious. > For more options, visit https://groups.google.com/groups/opt_out. > -- - - -- ---- ---------------------------------------------------- --- -- - - Marty Tennison Drip Depot Inc email: [email protected] web: www.dripdepot.com phone: (541) 304-0693 fax: (855) 711-8890 - -- --- ---------------------------------------------------------- --- -- -- You received this message because you are subscribed to the Google Groups "Mojolicious" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/mojolicious. For more options, visit https://groups.google.com/groups/opt_out.
