Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
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? 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 perusing the Monastery: (18)
As of 2014-08-27 15:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (244 votes), past polls