- or download this
my %data = {
'CityA'=>{
...
},
...
};
- or download this
print "What city? Choices are:\n",
join(", ", sort keys %data), "\n>";
...
chomp($grp = <>);
$hr = $hr->{$grp};
...
- 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=<>);
...
- or download this
my %data = {
'PopByAge/Gender'=>{
...
},
...
};
- or download this
my %data = {
'Cities'=>{
...
...
...
};
- or download this
my @data = [
{ city=>'CityA', table=>'PopByAge/Gender',
grpA=>'Age Group', grpB=>'Gender', A=>'0-9', B=>'Male', val=>220
+},
...
];
- or download this
my @selected = ( @data );
while (1) {
...
print "Choices are: ", join(", ", sort @choices), "\n>";
}
... print report on selected data ...