Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re: Socket Server without forking?

by fmerges (Chaplain)
on Sep 14, 2007 at 08:10 UTC ( #638966=note: print w/ replies, xml ) Need Help??

in reply to Socket Server without forking?


Because for sending you forgot the \r\n, or simply \n.

print $client "Hello there\n";


fmerges at

Comment on Re: Socket Server without forking?
Download Code
Replies are listed 'Best First'.
Re^2: Socket Server without forking?
by Gorby (Monk) on Sep 14, 2007 at 09:06 UTC
    still doesn't work
      This worked! Now my question is, what text do i send back to the client so that if the client is a web browser, it will be able to display what i send back? Thanks in advance for your wisdom!
        You need to send an HTTP header and then a HTML page.

        But usually you really want to use an existing webserver and CGI.

        If you really need a pure perl web server, use HTTP::Server::Simple.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2016-02-06 08:12 GMT
Find Nodes?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?

    Results (219 votes), past polls