in reply to Re^2: How to use TR to generate a table row
in thread How to use TR to generate a table row
Without seeing the code it's hard to know what the problem is. We could guess, but that would almost certainly be a waste of both your time and ours.
Again,what I am trying to do is give Tr a reference to a hash which has all of the first row cells in it. Can I do that?
You seem to be changing your story. Previously you have been telling us that you are trying to pass Tr an array. Now you say it's a hash. Which is it?
A table row doesn't contain data directly. They are supposed to be in td or th elements. Given an array that contains the data for a table row, you need code like this (again, assuming the function-oriented interface to CGI.pm as, in my opinion, it's far easier to use):
print Tr(td(\@array));
"The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
|
|---|