in reply to Readable HTML tables (revisited)
I am even more unhappy with the method you use to pass in the table parameters. It's an array, which you interpolate in the print. But if it's not passed, you assign it an empty string! If $st is an empty string, what is $st->[2] ?
IMHO, you should use a hash instead of an array, and check all the values passed in - then only fill out those attributes of the table which have the attribute set.
And to the same for the row and cell, of course - people often need to set their attributes.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Readable HTML tables (revisited)
by dimar (Curate) on Apr 24, 2004 at 22:15 UTC |