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 |
||
Line 5: | Line 5: | ||
select($old_fh); | select($old_fh); | ||
</source> | </source> | ||
+ | [category:Perl] |
Revision as of 08:58, 6 September 2009
Udskriv unbuffered til <STDOUT>
my $old_fh = select(STDOUT);
$| = 1;
select($old_fh);
[category:Perl]