Difference between revisions of "Perl flushing STDOUT"
From Teknologisk videncenter
m (New page: Udskriv unbuffered til <STDOUT> <source lang=cli> my $old_fh = select(STDOUT); $| = 1; select($old_fh); </source>) |
m |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
select($old_fh); | select($old_fh); | ||
</source> | </source> | ||
+ | [[category:Perl]] |
Latest revision as of 14:31, 6 September 2009
Udskriv unbuffered til <STDOUT>
my $old_fh = select(STDOUT);
$| = 1;
select($old_fh);