Perl: the Markov chain saw | |
PerlMonks |
Re: Datafile doesn't update before being readby George_Sherston (Vicar) |
on Jun 06, 2002 at 19:36 UTC ( [id://172328]=note: print w/replies, xml ) | Need Help?? |
Good that you post some code. I don't entirely agree with respected sibling Sifmole - I'd encourage you not to be parsimonious with your code posting. As it was, your question was about a thing that happens when you refresh your web page, if I understood it, but the code you posted doesn't seem to cover that.
So my first suggestion is, don't be shy, post away (on the other hand other monks may be working with a more current version of SOPW::Psychic than I have and may be able to answer based on what we have). My second suggestion is - you say I have a CGI script that (1) writes to a datafile, then (2) immediately reads that file in order to print to a webpage. - now there's probably a good reason for this, but on the face of it, why bother with the read at (2)? - you've already got the data in memory, so couldn't you just send it to the browser? § George Sherston
In Section
Seekers of Perl Wisdom
|
|