Schrift
[thread]8040[/thread]

Socket.pm (socketpair): bidirektionale Kommunikation (Seite 2)



<< |< 1 2 >| >> 14 Einträge, 2 Seiten
GwenDragon
 2006-05-31 18:43
#66848 #66848
User since
2005-01-17
14848 Artikel
Admin1
[Homepage]
user image
Dir ist klar, was select macht?
Quote
select FILEHANDLE
select Returns the currently selected filehandle. Sets the current
default filehandle for output, if FILEHANDLE is supplied.
bloonix
 2006-05-31 19:05
#66849 #66849
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
@gwen, ok, mir war ebenfalls nicht bewußt, dass select auch ohne
Argument aufgerufen werden kann und das aktuelle Handle zurück-
liefert.

Danke =)
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.
bloonix
 2006-05-31 19:10
#66850 #66850
User since
2005-12-17
1615 Artikel
HausmeisterIn
[Homepage]
user image
[quote=GwenDragon,31.05.2006, 16:03]
Quote
use IO::Handle; # Leider ist das *kein* kleines Modul

Wahrscheinlich wegen der 250 Zeilen Perl-Code anstatt einer ;)[/quote]
Ja, das finde ich nicht so berauschend, denn autoflush() macht im
Grunde genommen nichts anderes, als mit select() über SelectSaver()
zu arbeiten.\n\n

<!--EDIT|opi|1149088759-->
What is a good module? That's hard to say.
What is good code? That's also hard to say.
One man's Thing of Beauty is another's man's Evil Hack.
GwenDragon
 2006-05-31 19:13
#66851 #66851
User since
2005-01-17
14848 Artikel
Admin1
[Homepage]
user image
select setzt die Ausgabe für write or print vom aktuellen Filehandle, meist STDOUT, nach dem neuen Filehandle.
Das meinte ich.
<< |< 1 2 >| >> 14 Einträge, 2 Seiten



View all threads created 2006-05-31 16:49.