in reply to Re^2: how to capture status codes of mongodb in perl
in thread how to capture status codes of mongodb in perl

You can dereference the reference
print %$err;

or, better, use Data::Dumper:

use Data::Dumper; print Dumper $err;
لսႽ† ᥲᥒ⚪⟊Ⴙᘓᖇ Ꮅᘓᖇ⎱ Ⴙᥲ𝇋ƙᘓᖇ