http://www.perlmonks.org?node_id=86864


in reply to printing a table in html using data read from a text file

There are tools available for the data retrieval and HTML-table print:
use SuperSplit; use CGI qw/:html/; $data = supersplit_open( ', ', $data_file ); print table Tr [map td( $_ ), @$data] ;
Hope this helps,

Jeroen
"We are not alone"(FZ)
Update: After reading crazyinsomniac's updates, I really need to give credits to merlyn, who showed me the distributive properties of CGI functions.
Update 2: Forgot to paste the $_. bjelli++ for noting...

Replies are listed 'Best First'.
Re: Re: printing a table in html using data read from a text file
by bjelli (Pilgrim) on Jun 08, 2001 at 13:39 UTC

    jeroenes second updated fixed the problem I pointed out here.