[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] Character-by-character client/server with echo control?



Mark Aran Aiken <marka@ee.mcgill.ca> writes:
>    1) I gave up trying to write a client in Perl that would read from
>the socket character-by-character. Perl seems bent on reading at least
>a line at a time.

Just use sysread, not read. Disabling echo after that should be trivial.

Matthias

-----
Matthias Neeracher <neeri@iis.ee.ethz.ch> http://err.ethz.ch/members/neeri.html
   "One fine day in my odd past..." -- Pixies, _Planet of Sound_