Unbuffer output : FileHandle « File « Perl
- Perl
- File
- FileHandle
Unbuffer output
use FileHandle;
print "to STDOUT\n";
print STDERR "to STDERR\n";
STDOUT->autoflush(1);
STDERR->autoflush(1);
print "to STDOUT\n";
print STDERR "to STDERR\n";
Related examples in the same category