Hey guys and gals,
Thanks for all the input. I tried the options above.
$| = 1; didn't seem to do anything.
rflush or flush ends all execution of the program cause I'm calling it wrong. Can you tell me how I call it from a cgi script where I'm just using print?
The buffering website link didn't go anywhere
I'm still parsing the link to the linux site to understand what they are doing
I very well might be doing something wrong, so if you guys have any other suggestions, here is the entire code with the modifications requested. The flush seemed teh closest, is there anyway to flush and continue exection?
if it helps, curl/wget, which I don't think buffer, both show the page downloading all at once. And I have no buffering or performance caching on my apache site.
Thanks!
#!/usr/bin/perl -w
use strict;
use CGI qw/:standard/;
use CGI::Validate;
$| = 1;
&htmlOut();
exit;
sub htmlOut(){
print CGI::header();
print '<html><head><title>Hello Test</title></head><body>'."\n
+";
print time;
print "<br>";
# flush(); #flush or rflush both end program here as it's
+ not a known function call
sleep (1);
print time;
print "<br>";
sleep (1);
print time;
print "<br>";
}
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.