Announcement

Collapse
No announcement yet.

Perl/CGI Question

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 23r0c001
    started a topic Perl/CGI Question

    Perl/CGI Question

    Hello! I have a perl script that I want to print, then wait one second, then print some more. It doesn't work. It waits until it gets all of the information, then prints the whole thing. Any clue as to how I can make it do it one at a time? (No errors are reported when run form the command line and it does the same as my web browser... waits and then shows it all.)

    Code:
    #!C:/Perl/bin/perl -w
    use CGI ':standard';
    print "Content-type: text/html; charset=iso-8859-1\n\n";
    print '<html><body>';
    my @stuff=("the real array","was way too","long to put","in a post.");
    for ($i = 0; $i <= $#stuff; $i++) 
    {
    print "$stuff[$i]";
    sleep 1;
    }
    print '</body></html>';

Related Topics

Collapse

Working...
X