Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^4: Perl and MongoDB find error

by Kanishka.black0 (Scribe)
on Apr 10, 2012 at 22:15 UTC ( #964415=note: print w/replies, xml ) Need Help??

in reply to Re^3: Perl and MongoDB find error
in thread Perl and MongoDB find error

that example might have been outdated, i checked the code of module , it doesn't support

Replies are listed 'Best First'.
Re^5: Perl and MongoDB find error
by Anonymous Monk on Apr 11, 2012 at 09:22 UTC

    that example might have been outdated, i checked the code of module , it doesn't support

    I find that hard to believe :| Actually, I do not believe it :)

      find is not working i check the code, it been redirected to query in for final processing , even i was unable to digest at first.

        If you look at the tests in the distribution, they don't even test ``find'' with supplied key/value pairs, per what OP wants to do. For example:

         my $some_users = $users->find({"name" => "Joe"});

        If you try this, you'll get undefined values as you iterate over the cursor.

        (example taken straight from the documentation of MongoDB::Tutorial)

        OTOH, if you try this:

        my $john = $users->find({"name" => qr/joh?n/i});

        It seems to work. (Also from the documentation.)

        How bizarre.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://964415]
[Corion]: Mhhmmm - https://sod.pixlab .io/ looks really interesting for embedding with Perl (XS), but they don't have any kind of free model available and the cheapest pretrained model costs EUR 40 :-(
[Corion]: Maybe I should mail them to find out if they can provide me a "hotdog / no hotdog" model for developping the XS bindings. It would be nice to have a self-contained XS library for applying models to data. Or maybe I should look at TensorFlow, which can...
[Corion]: ... at least be trained by me, instead of relying on a vendor

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (9)
As of 2018-06-18 10:46 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (109 votes). Check out past polls.