There are a number of FastCGI modules for Perl:
FCGI (a compiled module written in C),
FCGI::Async (for asynchronous FastCGI applications),
AnyEvent::FCGI
(for AnyEvent-based applications),
FCGI::EV
(for EV-based applications),
CGI::Fast
(Perl CGI-like interface for FastCGI),
FCGI::Client (a FastCGI client library),
and Net::FastCGI
(constants and functions to build and parse FastCGI messages).