in reply to how to capture status codes of mongodb in perl
Look at the docs, they are quite detailed. In particular, the docs for the MongoDB::Database object show that there is a last_error method, and you can probably do this:
my $err = $database->last_error();
to get what you want.
- Luke
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how to capture status codes of mongodb in perl
by praveenchappa (Acolyte) on Nov 05, 2014 at 12:29 UTC | |
by choroba (Cardinal) on Nov 05, 2014 at 12:44 UTC | |
by blindluke (Hermit) on Nov 05, 2014 at 16:00 UTC |