I think my server is responsible for this and no addition perl modules are needed just to run fast CGI, am I right ?

No, you need a module for fast cgi same as you do for regular cgi.

Just as CGI is an interface/protocol between webservers (like apache) and programs like perl, so is FastCGI, and both protocols require both webserver and program to speak the same protocol, so that the program can speak internet (the webserver helps the program speak internet)

If you don't use a module (like a frenchtalian translator), you have to learn the protocol -- its like making your own frenchtalian speaking hammer -- just use the free one :)

In perl, CGI.pm speaks pretty good CGI, and FCGI speaks pretty good FastCGI

CGI.pm distribution even comes with CGI::Fast - CGI Interface for Fast CGI

CGI protocol is there to help programs speak internet through an intermediary known as a webserver

The best and most flexible way for perl programs to speak internet is PSGI, see PSGI::FAQ

If you use dancer or mojolicious or catalyst ... they all speak PSGI pretty well, which means they can run on mod_perl, plain old CGI, FastCGI... thats the idea behind PSGI

Dancer and CGI are just ways for computer programs to speak internet, you should learn about the internet :)

Re: How does Dancer handle forms? How do other such frameworks do it?

All the frameworks give you a request object

All the frameworks want you to give them a response object

If you're using CGI.pm and following CGI to mod_perl Porting. mod_perl Coding guidelines you're 98% modern , only 2% away from using any "modern frameworks" which have a response object

PSGI, PSGI::FAQ

If you want speed in templating, see Text::Xslate::Manual::FAQ, Xslate - Scalable template engine for Perl5


In reply to Re: Perl and Fastcgi + template system (confused) by Anonymous Monk
in thread Perl and Fastcgi + template system (confused) by Martin90

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.