Help for this page

Select Code to Download


  1. or download this
    printf "%20s %s\n", "Key", "Value";
    printf "%20s-%s\n", "-"x20, "-----";
    foreach my $key (keys %hash) {
       printf "%20s %s\n", $key, $hash{$key};
    }
    
  2. or download this
    # $hash{$key} = { field1 => 'value', ... };
    
    ...
    foreach my $key (keys %hash) {
       printf $format, $key, @{$hash{$key}}{@keys};
    }