in reply to I hate HTML functions
in thread Beginnings of Online CGI Course

First, I do plan to introduce CGI::Carp.

I recommend that the people take the course learn to use the CGI.pm HTML functions for several reasons:

I plan to introduce a variety of methods of creating the HTML, so that people taking the course can see the pros and cons of different methods (TIMTOWTDI). It's tough to evaluate something you have never used. I hate multiple print statements and a here document is not much better. Obviously, for large sites, mixing code and HTML is a nightmare. At the very least, the HTML functions are code as opposed to markup tags. I won't demand that the people taking the course use any one method, but I will ask that they at least be familiar with them.

Cheers,
Ovid

Join the Perlmonks Setiathome Group or just go the the link and check out our stats.

  • Comment on (Ovid - why I used HTML functions in the course)

Replies are listed 'Best First'.
RE: (Ovid - why I used HTML functions in the course)
by merlyn (Sage) on Oct 07, 2000 at 00:27 UTC
    The HTML functions also permit me to use Emacs to find the nestingness of each tag, and there are a lot of high-level functions that aren't 1-to-1 with HTML that shortcut many things. When's the last time you had to do an option-list by hand? It's so much easier with the shortcut! And using the HTML functions, I get sticky fields and HTML-escaping of defaults for free!

    -- Randal L. Schwartz, Perl hacker