chrisj0 has asked for the wisdom of the Perl Monks concerning the following question:
earlier in the program I'm connecting to 'n' number of databases and listing the tables contained in each. I assign the result to an array and put it in a hash with the key being the db name. TIA, chrisj0while ((my $key, my $value) = each %db_stru) { print "$key contains tables:\n"; foreach my $tbl ($db_stru{$key}) { print "\t$tbl:"; } print "\n"; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: help with a hash of arrays.
by kvale (Monsignor) on Mar 26, 2004 at 23:12 UTC | |
|
Re: help with a hash of arrays.
by davido (Cardinal) on Mar 27, 2004 at 06:07 UTC | |
|
Re: help with a hash of arrays.
by optimist (Beadle) on Mar 27, 2004 at 23:41 UTC |