Help for this page

Select Code to Download


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