Mongoose::Cursor - a Mongoose wrapper for MongoDB::Cursor
version 0.04
Extends Mongoose::Cursor.
Wraps MongoDB::Cursor's next and allmethods, so that it expands a document into a class.
next
all
For your convenience:
Iterates over a cursor, calling your sub.
Person->find->each( sub { my $obj = shift; # do stuff # return undef to break out return undef if $done; });
To install Mongoose, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Mongoose
CPAN shell
perl -MCPAN -e shell install Mongoose
For more information on module installation, please visit the detailed CPAN module installation guide.