in reply to CGI Table?

A --probably-- unhelpful answer: in general one should avoid fixing lengths and widths of HTML tables and cells. It is the whole idea and philospohy behind HTML that the client's browser takes care of the rendering and adjusts it as necessary taking into account the screen-size, output media, ...

At the most one should give some hints to the browser by using CSS, but that should be about it.

But to answer your question (and assuming you use CGI), you will read in the docs:

If the first argument is an associative array reference, then the keys and values of the associative array become the HTML tag's attributes
The HTML 4.01 docs state that table cells take an attribute of width = length but that it is deprecated (in favour of putting it in CSS of course).

CountZero

A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

Replies are listed 'Best First'.
Re^2: CGI Table?
by JimJx (Beadle) on Oct 12, 2007 at 10:23 UTC
    WOW!!!

    Thanks for answering everyone, really shows what support is available for PERL users (even a novice such as myself.....)