in reply to HTML forms

Yes. It is. Just DWYM and it will work. HERE docs work fine, intermingled with output from CGI.pm.

Just be sure that the field names you use in your HERE doc are the same ones you look for via $q->param('...'). There is no difference between the output of the "CGI.pm HTML shortcuts" and the output of printing a HERE doc.

The strongest case for using the CGI.pm HTML shortcuts is that it adds some degree of compiletime syntax checking to your HTML. But frankly, I often find them awkward, and often find myself using CGI.pm only for it's input parameter handling, handling uploads, and for the header() method. YMMV.


Dave

Replies are listed 'Best First'.
Re: Re: HTML forms
by kiat (Vicar) on Dec 27, 2003 at 23:56 UTC
    Hi davido,

    But frankly, I often find them awkward, and often find myself using CGI.pm only for it's input parameter handling, handling uploads, and for the header() method. YMMV.
    That's exactly what I'm using CGI.pm for. It kinda makes me wonder if it's because I've yet to fully learn its functionality with respect to outputting HTML. Ah, now I know I'm not alone...:)

    The reasons I shun CGI.pm for its HTML capability are 1) I don't want to have to learn the additional syntax to do HTML and 2) I'm already very familiar with HTML and want to make use of that knowledge.

    Lately, I discovered HTML::Template through this community and have since used it for managing content. I find it a really neat solution to marry the two skills of perl CGI and HTML.