Help for this page

Select Code to Download


  1. or download this
    DiveVal(\%hash, map \$_, @elts) = $val;
    
  2. or download this
    $hash{ $elts[0] }{ $elts[1] }...{ $elts[n-1] } = $val;
    
  3. or download this
    foo.bar=val
    foo.bar.baz=val
    
  4. or download this
    $hash{$new_key} = delete $hash{$old_key};
    
  5. or download this
    $hash{$new_key} = delete $hash{$old_key}
       if exists $hash{$old_key};