Help for this page

Select Code to Download


  1. or download this
    # { student name => grade }
    my %grades = ( "Bob" => 3.2, "Alice" => 3.9 );
    ...
    #    }
    #
    # or you could give a symbolic name to the { id => value } things.
    
  2. or download this
      my %map = ( a => 1, b => 3, c => 2 );
    
    ...
      my %map2 = ( a => { name => "Bob", children_ids => { Alice => 132, M
    +abel => 81 } });
      # Set $etty to "Mabel"
      match('{ ? => { children_ids => { $etty => 81 } } }', \%map2);