I haven't read
merlyn's column but here is a quick simple option (simple is relative)...
First, you could have the first page spit out a meta refresh tag that will bounce to the second page after a predetermined amount of time, if the second page isn't yet ready you could print another meta refresh. Alternately you could have a pipe open between the two processes, the forked one could could signal the parent, via the pipe, when it is ready, the parent would then send a javascript location bounce or a meta refresh to the browser (most browsers now will even let this occur at the bottom of a page, not just the headers) that will take you to the second page.
Second, the forked process prepares the html and dumps it to a static file under an assumed session id. The meta refresh or javascript bounce will just need to pass the id along. When the browser hits the cgi again, the second page simply opens up and spits out the cached file.
I haven't looked but I would imagine
merlyn's solution does something similar.
my @a=qw(random brilliant braindead); print $a[rand(@a)];
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.