in reply to HTML with CGI.pm

Since I discovered CGI.pm, I've used it for everything HTML-related that I have to do. I tend to embed tag functions 10-20 deep, which prodocues remarkably concise code. This confuses the hell out of coworkers not used to functional programming, but properly indented, it can make perfect sense. As a result, the code is much more maintainable and infinitely more flexible. Tables especially are vastly simplified by using CGI. Need to change the color of a cell? Do it in one place, not everywhere you have a <TD>. I recently went back to a script I wrote using a combination of hard HTML with Perl buried inside; I had never updated the script because I hadn't been able to decipher what it did anymore. I finally decided to reimplement it from scratch using CGI, and now it's a breeze to change.

As for efficiency, I've never noticed any slowdown, even with complex table-embedded forms and such. However, I don't manage any sites with huge traffic so I've never bothered to do any benchmarks. My intuition would be that the slowdown would be certainly detectable if you tried to notice it, but probably not fatal.

If speed is a completely critical issue, try it both ways and do the benchmarks; you may need to do the hard HTML. But if it's not, absolutely get comfortable with CGI.pm; you'll love yourself for it down the road.