R
robertchen117
I want to new different table for different months in my hash, but the
new HTML::Table need to return a variable, I could not use $($table .
$month), what should I do?
foreach $month (sort keys %months_days) {
@days = @{$months_days{$month}};
if($#days > 0){
#$mystring = "table" . $month;
$table1 = new HTML::Table(-align=>'left',
#-head=> ['Sunday', 'Monday', 'Tuesday', 'Wednesday',
'Thursday', 'Friday', 'Saturday'],
-width=>'60%',
#-align=>'center',
-border=>0,
);
$table1->setCellAlign('center');
....
}
new HTML::Table need to return a variable, I could not use $($table .
$month), what should I do?
foreach $month (sort keys %months_days) {
@days = @{$months_days{$month}};
if($#days > 0){
#$mystring = "table" . $month;
$table1 = new HTML::Table(-align=>'left',
#-head=> ['Sunday', 'Monday', 'Tuesday', 'Wednesday',
'Thursday', 'Friday', 'Saturday'],
-width=>'60%',
#-align=>'center',
-border=>0,
);
$table1->setCellAlign('center');
....
}