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
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.