Do you know where your variables are? | |
PerlMonks |
Re^3: Is there any Perl Module to handle HTML Pagesby dorward (Curate) |
on May 19, 2006 at 09:24 UTC ( [id://550456]=note: print w/replies, xml ) | Need Help?? |
(I'm a bit unclear as to if you are writing something that produces webpages, or something that tests the production of webpages by something else. I'm assuming the former for this:) Writing web applications (which I assume you are doing, as I've very very rarely seen HTML used in other types of application) is fundamentally different from writing regular GUI applications. It is a client-server system with a stateless protocol. The server cannot send any data to the client except in response to a request from the client, and there is no built in way to tell one client from another. So, one way to do what you want is to identify users with sessions, and when the request to start the long process comes in, fork it into the background and have it set a flag (probably in a database) when it is finished, then have the browser (using client side code such as a meta refresh or (buzzword alert) Ajax) make requests every $n seconds to another process which checks the status of the aforementioned flag. I'm not aware of anything which implements all this in one module, but something like Catalyst or CGI::Application may be the way to go.
In Section
Seekers of Perl Wisdom
|
|