I wrote a simple socket client to talk to a device that terminates its
replies with a hex \0x02.
IO::Socket->input_record_separator( "\02" );
seems to handle this but I was surprised that this affects more than
just the socket. When I enable the above statment, it screws up a
<STDIN> I have in the script. The <STDIN> won't end until I enter
control-B (which is hex 2).
Is there another way to limit the separator to the socket ?
- Thanks, Peter.