Perl: the Markov chain saw | |
PerlMonks |
RE: HTML with CGI.pmby jlistf (Monk) |
on Jul 22, 2000 at 00:48 UTC ( [id://23832]=note: print w/replies, xml ) | Need Help?? |
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.
In Section
Seekers of Perl Wisdom
|
|