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

Re: table()'s with CGI.pm

by thabenksta (Pilgrim)
on Jun 25, 2001 at 20:32 UTC ( [id://91336]=note: print w/replies, xml ) Need Help??


in reply to table()'s with CGI.pm

No need for all that fancy mess, I would do the following.

my $table open (INFILE, "<sites.txt"); #data from file looks like this: #sitename|siteaddress|status|comments while (<INFILE>) { my(@vals) = split/|/; $table .= "<tr><td>$vals[0]</td><td>$vals[1]</td><td>$vals[2]</td><t +d>$vals[3]</td></tr>\n"; } close (INFILE); print "<table>$table</table>";

With the appropriate header of course.

-thabenksta
my $name = 'Ben Kittrell'; $name=~s/^(.+)\s(.).+$/\L$1$2/g; my $nick = 'tha' . $name . 'sta';

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-23 21:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found