Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Answer: Can I read a line from a socket without the socket sending \n?

( #45901=categorized answer: print w/ replies, xml ) Need Help??

Q&A > network programming > Can I read a line from a socket without the socket sending \n? - Answer contributed by crazyinsomniac

Ok ask your self this,
what is a line?
if you can answer it without using '\n' then you can read a line without sending '\n'.
If i were you i would seriously consider limiting the length of a line to 80 characters,
that way when you just read 80 chars you consider it a line or just stick to what works and send '\n'.

  • Comment on Answer: Can I read a line from a socket without the socket sending \n?
Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (7)
As of 2016-08-28 01:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    The best thing I ever won in a lottery was:















    Results (390 votes). Check out past polls.