Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: Http server problem

by jethro (Monsignor)
on Sep 15, 2009 at 13:25 UTC ( [id://795380]=note: print w/replies, xml ) Need Help??


in reply to Http server problem

Please use warnings and strict, the best way to polish your perl skills ;-)

The problem ist that you try to reread your __DATA__ section every time you get a request, but the respective "file pointer" is at EOF after the first time. I don't know if the pointer can be reset (look up the docu if you want to), but it is easier to just move the line where you initialize $bad_request_doc to somewhere before the main loop

Replies are listed 'Best First'.
Re^2: Http server problem
by woosley (Beadle) on Sep 15, 2009 at 13:55 UTC
    Thanks, jethro.
    I do use "use warnings" and "use strict", just did not paste here :).

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://795380]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-20 02:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found