in reply to Re: Hash of Arrays of Hashes Parsing
in thread Hash of Arrays of Hashes Parsing
Cheers!print "\t<tr>\n"; if (ref($data) eq 'ARRAY') { foreach my $array (@$data) { foreach my $value (keys %$array) { print "\t\t<td>$array->{$value}</td>\n"; } } } elsif ref($data) eq 'HASH') { foreach my $value (keys %$data) { print "\t\t<td>$data->{$value}</td>\n"; } } else { print "\t\t<td>Too Bad Sucka!</td>\n"; } print "\t</tr>\n";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Hash of Arrays of Hashes Parsing
by hmerrill (Friar) on Sep 19, 2003 at 21:08 UTC |