The basic principal is that your program never stops running, but instead blocks on a loop, and continues it's progress whenever a new request is needed.
This is ment to aid in initializing generally unchanging things only once for several request, like database connections...
What you need to make sure is that no information in the initialization part of the program is oriented towards any client in particular, and that everything is kept enclosed and secured - objects destroyed and cleaned up, and so forth.. Generally the loop scope should take care of this...
Update: I forgot to mention that CGI::Fast inherits from CGI, which is more thoroughly documented. Their behavior is the same in terms of data processing, so the migration from CGI::Simple to CGI should be very similar if not identical to the migration to CGI::Fast...
You may also be interested in mod_perl.
-nuffin
zz zZ Z Z #!perl
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.