A
Aaron DeLoach
Hi all,
I have the following HoH:
my %payment_methods =
(
"Credit Cards"=>{
"ae" => "American Express",
"di" => "Discover",
"vi" => "Visa",
"jc" => "JCB",
"dc" => "Diners Club",
"mc" => "MasterCard",
},
"Other"=>{
"mo" => "Money Order",
"po" => "Purchase Order",
},
"Checks"=>{
"pe" => "Personal Check",
"co" => "Company Check",
"ca" => "Cashiers Check",
"ce" => "Certified Check",
},
);
I would like to construct an html table of the data as follows. I don't need
help with the html, just the ability to produce the data in column/row
format.
(hash names)
row1 Credit Cards | Other | Check
(now values)
row2 American express | Money Order | Company Check
row3 Discover | Purchase Order | Cashiers Check
row4 Visa | | Certified Check
row5 JCB | |
row6 Diners Club | |
and so on...
As you can see from the example data ends in different columns as the hash
runs out of values. Any assistance would be greatly appreciated.
Regards
Aaron
I have the following HoH:
my %payment_methods =
(
"Credit Cards"=>{
"ae" => "American Express",
"di" => "Discover",
"vi" => "Visa",
"jc" => "JCB",
"dc" => "Diners Club",
"mc" => "MasterCard",
},
"Other"=>{
"mo" => "Money Order",
"po" => "Purchase Order",
},
"Checks"=>{
"pe" => "Personal Check",
"co" => "Company Check",
"ca" => "Cashiers Check",
"ce" => "Certified Check",
},
);
I would like to construct an html table of the data as follows. I don't need
help with the html, just the ability to produce the data in column/row
format.
(hash names)
row1 Credit Cards | Other | Check
(now values)
row2 American express | Money Order | Company Check
row3 Discover | Purchase Order | Cashiers Check
row4 Visa | | Certified Check
row5 JCB | |
row6 Diners Club | |
and so on...
As you can see from the example data ends in different columns as the hash
runs out of values. Any assistance would be greatly appreciated.
Regards
Aaron