Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: Simplicity vs. Doing It Right

by Aristotle (Chancellor)
on Oct 13, 2002 at 21:46 UTC ( [id://204941]=note: print w/replies, xml ) Need Help??


in reply to Re: Simplicity vs. Doing It Right
in thread Simplicity vs. Doing It Right

I hardly see a reason to use CGI's HTML generation routines - the output is still hardcoded, so you don't really win a thing over just putting strings in your code. The only possible difference is it automatically produces well formed XHTML. Shrug. If I hardcode my HTML for a small script, I use a heredoc or something. Anything else, I use Template Toolkit II. (Literally everything; I'm starting to use it in command line scripts too.)

If you look around you'll see that there's hardly anything like a consensus that CGI.pm's HTML routines are The Right Way, and in fact some quite highly regarded folks will tell you to first look for another solution.

Just because a module offers some functionality, even if it's a core module, doesn't mean you have to or even should use it. FindBin f.ex is so badly broken I actually find it sort of embarrassing that it's in the core.

Makeshifts last the longest.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://204941]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-19 15:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found