First off, you should have parentheses around the @list or else this is not valid syntax. Since we don't have a correct code snippet, it's tough to see what the problem is. Further, are you using strict and warnings? If so, you may get some useful information in your error log that would guide you. My main question, though, is "how are you setting $time"? I know of no reason why it wouldn't operate properly via the Web.
Frankly, though, I've never used this with a CGI script. If a script takes too long to return an answer, the server may issue a 408 Request Time-out status to the browser and kill the process. If you provide us with a bit more code, we may be able to answer your question or provide you with an alternate solution.
Cheers,
Ovid
Vote for paco!
Join the Perlmonks Setiathome Group or just click on the the link and check out our stats.
In reply to (Ovid) Re: CGI and Sleep?
by Ovid
in thread CGI and Sleep?
by jellisii
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |