Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

RE: HTML with CGI.pm

by jlistf (Monk)
on Jul 22, 2000 at 00:48 UTC ( [id://23832]=note: print w/replies, xml ) Need Help??


in reply to HTML with CGI.pm

in my experience (limited though it is) using CGI.pm is harder to use and the resulting HTML is harder to read. let me explain this. i don't like having to embed some tags three or four or more levels deep. just my preference, i know. as for the reading... make sure you add in newlines yourself in the outputted HTML or you'll have lines of HTML that stretch on endlessly.

CGI.pm does have some benefits when outputting HTML. it will automatically close all tags, making it unnecessary to worry about that.

in general, i rarely use it to output HTML (except the header, start_html and end_html methods) and stick to its cookie and parameter methods. i suppose if you got used to coding it and were able to turn the outputted HTML into a easily readable format it would be worthwhile. but i don't do enough CGI programming to do that.

more: i've never used CGI::pretty so i can't comment on that. as for the speed factor... my guess is that CGI.pm would be a little slower, but i'm not certain.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2024-03-29 11:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found