Help for this page

Select Code to Download


  1. or download this
    my %h : shared;
    $x = $h{foo};                         # R1 safe?
    @x = keys(%h);                        # R2 safe?
    while (($k, $v) = each(%h)) { ... }   # R3 safe?
    
  2. or download this
    $h{foo} = "change the existing 'foo' entry";   # W1 aka modification
    $h{bar} = "add a 'bar' entry";                 # W2 aka insertion
    delete($h{zoi});                               # W3 aka deletion