Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: printing out a table X wide and X down without html::template

by robot_tourist (Hermit)
on Aug 22, 2007 at 08:12 UTC ( #634267=note: print w/ replies, xml ) Need Help??


in reply to printing out a table X wide and X down without html::template

I've seen one response that uses CGI.pm, but don't forget that the CGI docs explain how to use start_Tr and end_Tr.

use CGI qw/:standard *table *Tr/; ... # decide rows and columns of table ... # e.g. AoA @rows where each element points to an array of cells ... # perhaps each cell could point to a hash of the image data print $query->start_table(...); for my $row (@rows) { print $query->start_Tr(...); for my $cell (@{$row}) { print $query->td(...); # insert image data here } print $query->end_Tr(); } print $query->end_table(); ...

How can you feel when you're made of steel? I am made of steel. I am the Robot Tourist.
Robot Tourist, by Ten Benson


Comment on Re: printing out a table X wide and X down without html::template
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://634267]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (4)
As of 2014-12-29 02:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (184 votes), past polls