%= include("/elements/header.html",'Map tables') %>
\n"; my %unique; foreach my $table ( keys %schema ) { ( my $spaces = $table ) =~ s/./ /g; print "'$table' => { 'table' => '$schema{$table}',\n". #(length($table) x ' '). " 'map' => {\n"; "$spaces 'map' => {\n"; my %map = map { /^\s*(\w+)\s*=>\s*(\w+)\s*$/ or die "guru meditation #420: $_"; ( $1 => $2 ); } split( /\n/, $cgi->param($table.'__'.$unique{$table}++) ); foreach ( keys %map ) { print "$spaces '$_' => '$map{$_}',\n"; } print "$spaces },\n"; print "$spaces },\n"; } print "\n