User since
2006-11-26
384
Artikel
BenutzerIn
@pq: ok, dass kannte ich noch garnicht - danke fuer die Erklaerung.
Dann so:
print "Hallo\n";
sleep(10);
print "Welt";
oder
$|++;
print "Hallo";
sleep(10);
print "Welt";
Gruß,
rPerl
User since
2003-11-28
3645
Artikel
ModeratorIn
Diagnose-Output gehört sowieso nach STDERR...
User since
2005-04-14
684
Artikel
BenutzerIn
Hallo
Der Vollständigkeit halber:
perldoc -f select
You can effect a sleep of 250 milliseconds this way:
select(undef, undef, undef, 0.25);
Note that whether "select" gets restarted after signals (say,
SIGALRM) is implementation-dependent. See also perlport for
notes on the portability of "select".
Gruß
Kristian