Help for this page
my $type = ref $first; ... croak("...") unless $type eq 'HASH' or (ref($first) and UNIVERSAL::isa($first, 'H +ASH'))
use overload (); # added (), according to ysth's suggestion use Scalar::Util qw/blessed reftype/; ... and overload::Method($thing, $overload{$type}); return 0; }