- or download this
select((select($fh), $|=1)[0]);
- or download this
use IO::Handle; # update: not needed for Perl 5.14+
# ...
$fh->autoflush();
- or download this
print $file $name, $rank, $serial_num, "\n";
- or download this
print {$file} $name, $rank, $serial_num, "\n";
- or download this
use IO::Handle;
$file->print( $name, $rank, $serial_num, "\n" );