in reply to Re^2: CGI.pm HTML-Generation Methods Considered Useful
in thread CGI.pm HTML-Generation Methods Considered Useful

Surely you meant to map to stylesheet classes? Does anyone still hardcode colors into their code these days? It is 2004 afterall....

Do you find it vaguely inefficient to use 3000+ lines of code + your 18 to do what <30 lines of code (or one line as a call when you modularise it) will do just as well, faster and in a more transparent maintainable and consistent manner?

Hmm does that sound biased? OK I admit it. I think CGI.pm has no place in generating HTML in the first place, and don't like the interface. You either love it or you hate it. I have used it. I do hate it. Ovid likes it and so does merlyn. What can I say? They are obviously misguided, or I have no idea what I am talking about. Or perhaps they use what works for them as I use what works for me. Use what works for you. TIMTOWDI.

cheers

tachyon

  • Comment on Re^3: CGI.pm HTML-Generation Methods Considered Useful

Replies are listed 'Best First'.
•Re^4: CGI.pm HTML-Generation Methods Considered Useful
by merlyn (Sage) on Jul 10, 2004 at 19:31 UTC
    I use it when I don't have a templating solution nearby, or even in combination with a templating solution. CGI.pm generates shortcuts for common things, like option lists and headers, but also handles the sticky form elements. I don't know of any other as-ubiquitous easy solution for handling sticky form elements.

    -- Randal L. Schwartz, Perl hacker
    Be sure to read my standard disclaimer if this is a reply.

Re^4: CGI.pm HTML-Generation Methods Considered Useful
by friedo (Prior) on Jul 10, 2004 at 13:39 UTC
    In the real world, I generally only use it when I need a one-off solution to generate static HTML. I wouldn't use it in a live web application, unless it was some internal thing that only saw occasional use.