I found out what the problem is. If you write
$q->table({-border=>undef},
#caption('When Should You Eat Your Vegetables?'),
$q->Tr({-align=>CENTER,-valign=>TOP},
[
$q->th(['Vegetable', 'Breakfast','Lunch','Dinner']),
$q->td(['Tomatoes' , 'no', 'yes', 'yes']),
$q->td(['Broccoli' , 'no', 'no', 'yes']),
$q->td(['Onions' , 'yes','yes', 'yes'])
]
)
),
instead of
print table({-border=>undef},
caption('When Should You Eat Your Vegetables?'),
Tr({-align=>CENTER,-valign=>TOP},
[
th(['Vegetable', 'Breakfast','Lunch','Dinner']),
td(['Tomatoes' , 'no', 'yes', 'yes']),
td(['Broccoli' , 'no', 'no', 'yes']),
td(['Onions' , 'yes','yes', 'yes'])
]
)
),
it works. Otherwise you get a "Undefined subroutine &main::caption called at
..." error message. You'll get the error as soon as yo include the
"caption"-line or if you just write th(... (also td + Tr) instead of
$q->th(...
Is there an explanation for this?
Richard
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]