Difference between revisions of "Perl flushing STDOUT"
From Teknologisk videncenter
m |
m |
||
Line 5: | Line 5: | ||
select($old_fh); | select($old_fh); | ||
</source> | </source> | ||
− | [category:Perl] | + | [[category:Perl]] |
Latest revision as of 14:31, 6 September 2009
Udskriv unbuffered til <STDOUT>
my $old_fh = select(STDOUT);
$| = 1;
select($old_fh);