Help for this page

Select Code to Download


  1. or download this
    sub that_cgi_script {
      ...
    ...
      #    eval and ignored
      # 3) may redirect: print Location header and call exit()
    }
    
  2. or download this
    my $FCGI_EXIT = "FCGI NORMAL EXIT\n";
    BEGIN { *CORE::GLOBAL::exit = sub { die $FCGI_EXIT }; }
    ...
        die $@ if $@ ne q{} && $@ ne $FCGI_EXIT;
        $CGI::Fast::Ext_Request->Finish();
    }
    
  3. or download this
    BEGIN { *CORE::GLOBAL::exit = sub { goto EXIT }; }
    while (CGI::Fast->new()) {
    ...
      EXIT:
        $CGI::Fast::Ext_Request->Finish();
    }