in reply to Re^2: image and href tags in CGI.pm
in thread image and href tags in CGI.pm

Hi,

I politely disagree with your comment about CGI.pm. It is actually quite easy to use with a moderate learning curve. Whether or not to use a template is mostly by design of the project and personal preferences. Each has their uses.

Jason L. Froebe

Team Sybase member

No one has seen what you have seen, and until that happens, we're all going to think that you're nuts. - Jack O'Neil, Stargate SG-1

Replies are listed 'Best First'.
Re^4: image and href tags in CGI.pm
by BUU (Prior) on Jan 03, 2005 at 23:31 UTC
    Disagreeing is fine, this is perl after all, but my main criticism of CGI.pm's html generating function is not that they are easy to use, it is that they are very ugly. Do you honestly find:
    print table(tr(td(a(-href=>'http://google.com',"http://google.com"))))
    easier to read than
    print "<table><tr><td><a href='http://google.com'>http://google.com</a +></td></tr></table>";
    ?

    As for templates, I've yet to see a situation where *not* using templates is better design. People often refuse to use them, mostly due to false laziness (but occasionally it is a good laziness), but that doesn't make it good design.