Help for this page

Select Code to Download


  1. or download this
    my %data = {
       'CityA'=>{
    ...
       },
       ...
    };
    
  2. or download this
    print "What city? Choices are:\n", 
          join(", ", sort keys %data), "\n>";
    ...
    chomp($grp = <>);
    $hr = $hr->{$grp};
    ...
    
  3. or download this
    # Each city may have different tables, so trawl through all the
    # cities to find available table names
    ...
       join(", ", sort keys %{$tables{$table}}), ">\n";
    chomp($city=<>);
    ...
    
  4. or download this
    my %data = {
       'PopByAge/Gender'=>{
    ...
       },
       ...
    };
    
  5. or download this
    my %data = {
       'Cities'=>{
    ...
                 ...
        ...
    };
    
  6. or download this
    my @data = [
       { city=>'CityA', table=>'PopByAge/Gender', 
         grpA=>'Age Group', grpB=>'Gender', A=>'0-9', B=>'Male', val=>220 
    +},
       ...
    ];
    
  7. or download this
    my @selected = ( @data );
    while (1) {
    ...
       print "Choices are: ", join(", ", sort @choices), "\n>";
    }
    ... print report on selected data ...