Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

mako132 (2925)

Journal of mako132 (2925)

Wednesday June 19, 2002
07:18 PM

Eternal Startup Is the Price of Elegance

[ #5793 ]
Take

use strict;
use CGI qw/:standard/;
use CGI::Carp qw/fatalsToBrowser/;
use IO:Socket;
use GD;
use XML::Simple;

add 4 lines of code. What do you get?

One dog-slow CGI. You can just hear Apache groan. And I haven't added the DBI code yet :-0

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • That's why I use Apache::Registry and mod_perl. I basically write CGI scripts without the startup time :)

    A recent project used a total of 9 modules in the main script: CGI, CGI::Carp, File::Slurp, Storable, Apache::Session, Date::Calc, Digest::MD5, Mail::Sendmail, HTML::Template, and DBI. Other parts of it used MIME::Lite, Mail::Bulkmail, Parallel::ForkManager, Email::Valid, Mail::MboxParser, Mail::Address, and Email::Find. Wow! That's not including the dependencies of these module either.

    That's why I l

  • You should check out PPerl. It's perfect for just this kind of thing. And all you need to change is your shebang line.