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

Re: Re: Cant get user input from sockets into variables.

by wog (Curate)
on Sep 22, 2001 at 19:03 UTC ( [id://114061]=note: print w/replies, xml ) Need Help??


in reply to Re: Cant get user input from sockets into variables.
in thread Cant get user input from sockets into variables.

The telnet standard says that LF should be considered to move the printer to the next line in the same horizontal position and that CR should be considered to move the printer to beginning of the current line, and that...
the sequence "CR LF" must be treated as a single "new line" character and used whenever their combined action is intended
Implying that CR LF is going to be the only newline sequence you will recieve in a telnet stream which is presumably being used here. So there is no need to check for just CR or LF/NL.

Also, note that \r\n is not portable between platforms -- \n and \r are swapped on Macs (because CR is used to terminate lines on Macs, not LF/NL.)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-04-19 23:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found