Skip Menu |

This queue is for tickets about the FCGI-Engine CPAN distribution.

Report information
The Basics
Id: 62482
Status: new
Priority: 0/
Queue: FCGI-Engine

Owner: Nobody in particular
Requestors: GAISSMAI [...]

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)

Subject: How to instantiate a CGI::Application webapp with FCGI::Engine?
Download (untitled) / with headers
text/plain 877b
Hi FCGI::Engine maintainers! First of all, thanks a lot for your work for the Perl community! I tried FCGI::Engine with CGI::Application but I wonder when the C::A webapp will get instantiated. And lacking the instantiation, I get the corresponding error message below. Please see the stripped down example code and error message below: use strict; use FCGI::Engine; { package MyApp; use base 'CGI::Application'; sub setup { my $self = shift; $self->run_modes( ['start'] ); } sub start { return '<html><head></head><body>Hello World!</body></html>'; } } my $fcgi_server = FCGI::Engine->new_with_options( handler_class => 'MyApp', handler_method => 'run', )->run; $ perl Can't use string ("MyApp") as a HASH ref while "strict refs" in use at .../local/perl/lib/perl5/CGI/ line 473.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to