I just moved a bunch of Perl scripts over to a server that I control. First, all of my scripts now require the -w switch in order to run. Ok,ok, I know I SHOULD be running with it always, but I don't like all that clutter in my logs, so I'd like to know how I can turn off the -w switch and have the script still run. When I try without it, I get the dreaded 500 error, and the error log says "Premature end of script headers". Weird.
Second thing, some of my scripts will timeout before printing all the HTML. On this one particular script, I have a bunch of heredoc printing going on, like print <<EOF; and then another EOF later on. It generates most of the page, but the browser hangs before it prints everything. If I delete some of the HTML between the EOF's and reload the page, it will actually print everything except the stuff I removed. it's almost like the script is too big for it to handle.
URLs and log files can be provided on request.
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:
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.
| & || & |
| < || < |
| > || > |
| [ || [ |
| ] || ] ||