I have a CGI script which does a lot of things such as logging in to our large company database to get information.
There is a foreach loop that goes through a list and foreach item contacts the db, gets info, etc etc. This hangs unless I
put a print "." in the foreach loop. I'm unclear why this would happen. Could it be buffering? When I flush the output
it doesn't help. It needs a print statement or it will hang.
Any ideas?
In reply to CGI hangs unless print by janedoh
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |