Beefy Boxes and Bandwidth Generously Provided by pair Networks Russ
Perl: the Markov chain saw
 
PerlMonks  

Re: Catalyst issue

by Khen1950fx (Canon)
on Jan 06, 2012 at 10:21 UTC ( #946573=note: print w/ replies, xml ) Need Help??


in reply to Catalyst issue

The first thing that you want to do is to check if you're running under FCGI or CGI. A simple way to check:

#!/usr/bin/perl use strict; use warnings; use FCGI; my %env; my $req = FCGI::Request( \*STDIN, \*STDOUT, \*STDERR, \%env ); if( $req->IsFastCGI ) { print "This is FastCGI\n\n"; } else { print "This is CGI\n\n"; } print_env( "Request Environment", \%env ); $req->Flush(); sleep 3; print_env( "Initial Environment", \%ENV ); $req->Finish(); sub print_env { my($label, $envp) = @_; print("$label:<br>\n<pre>\n"); my @keys = sort keys(%$envp); foreach my $key (@keys) { print("$key=$$envp{$key}\n"); } print("</pre><p>\n"); }


Comment on Re: Catalyst issue
Download Code
Re^2: Catalyst issue
by rijuroyson (Initiate) on Jan 09, 2012 at 06:03 UTC
    Hi,
    It is FCGI.
    Regards,
    Riju

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://946573]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (13)
As of 2014-04-24 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (565 votes), past polls