in reply to use CGI and die;
OK, I'll bite too:
1. The internals are a mess
Do you have any idea WHY the internals are "messy"? CGI.pm is arguably the most important Perl module ever. It ships with the core and is used by tens, maybe thousands of users. Which means that it is worth optimizing. To Death. Licoln spent lots of time and effort making it as fast as possible. For you and I it means that CGI.pm is fast. For him it means bearing the cost of a harder-to-maintain module, in which he threw away a lot of the rules that let you write clean code. So be happy he was ready to do this and accept the fact that non-premature optimization leads to non-trivial code.
3. It should only be used for basic CGI tasks, such as parsing params and handling cookies. HTML generation is right out.
This is true for most "serious" projects where you have the time to write proper templates, but believe me, for lots of "quick hacks" the fact that the parameter parsing and the HTML generation are integrated is pretty useful. It lets you write quickly a debug interface to a DB, or a Web interface to a command line tools.
So you are of course entitled to use an other module for your CGI tasks, but please do not think that CGI.pm is not useful and that "it's time has passed". It is still the best module people who start doing CGI can use.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: use CGI and die;
by Aristotle (Chancellor) on Jun 10, 2003 at 23:02 UTC | |
Re: Re: use CGI and die;
by perrin (Chancellor) on Jun 10, 2003 at 20:47 UTC | |
Re: Re: use CGI and die;
by mirod (Canon) on Jun 11, 2003 at 14:05 UTC | |
Re: Re: use CGI and die;
by hardburn (Abbot) on Jun 11, 2003 at 13:41 UTC |