Hello peeps,
Is there a way of making a perl script display info to the screen as it is running. It seems the code below only displays the output once the script finishes, I want it to display info as it loops the record set giving a running progress message to the screen.
here is what I have
but it only shows the screen when it has finished?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.
Is there a way of making a perl script display info to the screen as it is running. It seems the code below only displays the output once the script finishes, I want it to display info as it loops the record set giving a running progress message to the screen.
here is what I have
Code:
# Print header to screen
print "Content-type: text/html\n\n";
# Grab AR ID's
my @rs = getSQL("AR_Dets","ARID,CName","1=1");
# Loop AR's & Publish Website
for(my $x=1; $x<=$#rs; $x++){
# Print current AR progress message
print "Publishing [ $rs[$x]{'CName'} ] website, please wait...<br><br>";
# Publish Website
&Publish_Web($rs[$x]{'ARID'});
}
print "Websites Published!";
exit();
but it only shows the screen when it has finished?
"In complete darkness we are all the same, only our knowledge and wisdom separates us, don't let your eyes deceive you.