#!/usr/bin/perl
use CGI::Fast();
use MyApp;
use utf8;
# fastcgi usage as told in: http://cgiapp.erlbaum.net/index.cgi?FastCG
+I
while( my $q = new CGI::Fast ){
$q->header(-charset => 'utf-8');
my $app = new Engine( QUERY => $q );
$app->run();
}
Back then, when I started using C::A under fcgi, I think I had issues with C::A::FastCGI initializing things which should only run once under fcgi over and over. Which resulted in the above DIY solution and a $self->{initialized} = 1 flag later on on code which should really run only once. |