Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

comment on

( [id://3333]=superdoc: print w/replies, xml ) Need Help??
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.


In reply to script times out mysteriously by Donboy

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (6)
As of 2024-04-23 13:16 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found