Perl flushing STDOUT

From Teknologisk videncenter
Jump to: navigation, search

Udskriv unbuffered til <STDOUT>

 my $old_fh = select(STDOUT);
 $| = 1;
 select($old_fh);