use Perl Log In
Best Perl Method for CGI Programming
Maclir writes: There seem to a a number of ways of building CGI programs with perl; CGI.pm , the other CGI:: modules, HTML::Embperl, HTML::Mason. I have played around with CGI.pm and embedded parl (HTML::Embperl), and there are good and bad points with both.
What is the collected experiences and recommendations of the "use Perl;" community? (I can do without the "Python rulez" or "PHP is much better" comments - that is why I asked here and not on
ADVA-thanks-NCE
The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
Full
Abbreviated
Hidden
Loading... please wait.

use CGI; (Score:1, Interesting)
My only beef with CGI.pm is that it mixes two technically distinct feature sets into one module: The HTTP/CGI protocol complex (parameters in, URL handling, content out) and HTML (fonts, tables, etc.).
But that said, even if you only need the parameter parsing, it's madness to try to roll your own code instead of using CGI.pm. There are just too many weird rules and exceptions in the CGI and HTTP specs. And
TMTOWTDI (Score:1, Interesting)
You may want to pick this quarter's Perl Journal
for an article I wrote on HMTL::Mason. Mason
is a *great* tool for separating form and
functionality from CGI (ala ASP, ColdFusion, JSP, et al).
You'll need mod_perl and a bit of
Apache configuration to get this running.
That said, mod_perl and the CGI module alone are,
in my Mass-Hole venaculuar, wicked powerful.
In many ways, they are all you really need.
Check out the CPAN nearest you for the Apache*
modules, like Apache::Session.
For just blunt tools,
Which CGI/HTML system? (Score:1, Interesting)
It all comes down to "how do you want to mix your code and your HTML?" CGI.pm has shortcuts to generate HTML, but this means that you must change your program to change the HTML it produces. Most folks don't want to give their idiot cow orkers the ability to edit their code, nor do we trust idiot
CGI.pm (Score:1, Interesting)