Help for this page

Select Code to Download


  1. or download this
    # pseudo
    for <variable> ( list ) {
    ...
    for my $key ( keys %hash ) {
        print "$key\n";
    }
    
  2. or download this
    #psuedo
    $hash{<key>} = <value>;
    
    #read
    $hash{foo} = 'bar';
    
  3. or download this
    #pseudo
    @hash{<list of keys>} = <list of values>;
    
    #real
    @hash{ @keys } = @values;