in reply to Query about Perl-CGI

Just to add to MUBA's excellent advice, if you are going to use CGI;, then use CGI! :)

$| = 1; use CGI qw(:standard); print header, start_html, p('Hello World'), end_html, ;
Also ... it sounds like you may be looking for "server push" ... merlyn has written a few Web Technique columns, try a google search:

http://www.google.com/search?q=site%3Ahttp%3A%2F%2Fstonehenge.com+%22server+push%22

Or read what the CGI.pm docs have to say about it: #Server Push

jeffa

L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
B--B--B--B--B--B--B--B--
H---H---H---H---H---H---
(the triplet paradiddle with high-hat)