Help for this page

Select Code to Download


  1. or download this
    if(exists($coordinates->{$group})) {
      if(exists($coordinates->{$group}->{$id})) {
    ...
        }
      }
    }
    
  2. or download this
    my $result = do_stuff_in_hash_without_autovivifying(
      sub {
    ...
        return $sub->($hash);
      }
    }
    
  3. or download this
    use Tie::Hash::Vivify;
    use Data::Dumper;
    ...
    my $hash = Tie::Hash::Vivify->new(sub {
      die("No auto-vivifying! Bad programmer! No bikkit!\n".Dumper(\@_))
    });