Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number

Re: Http server problem

by jethro (Monsignor)
on Sep 15, 2009 at 13:25 UTC ( #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?

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

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2023-10-01 16:34 GMT
Find Nodes?
    Voting Booth?

    No recent polls found