select() in Perl
Florian Lohoff
flo at rfc822.org
Thu Jan 27 13:32:12 CET 2000
On Wed, Jan 26, 2000 at 10:15:03PM +0100, Dennis Wetzig wrote:
> Hi,
>
> wie man zu lesen bekommt, wenn man "perldoc -f select" eingibt,
> so soll man keine gepufferte I/O mit select() mischen.
>
> Ich vermute, man soll das nur nicht auf dem gleichen Filedescriptor
> machen? Oder darf das ganz Programm dann nicht print/read/write und
> Co. benutzen?
Wenn du das mixed hast du das problem u.a. das jeder "read" aufruf
dann den gesamten buffer zurueckliefert - D.h. nehmen wir an das
du zeilenweise liest dann bekommst du einmal zeile 1, dann zeile 1 und 2
dann zeile 1 2 und 3...
Flo
--
Florian Lohoff flo at rfc822.org +49-5241-470566
"Technology is a constant battle between manufacturers producing bigger and
more idiot-proof systems and nature producing bigger and better idiots."
More information about the Linux
mailing list