Unbuffered perl io : binmode « File « Perl






Unbuffered perl io

    

#!/usr/bin/perl

binmode(STDOUT,":unix"); #requires PerlIO
for (0..9) {
    print "."; sleep 1;
}
print "\n";

   
    
    
    
  








Related examples in the same category

1.Change file handle to binary mode
2.Copy file by reading one file and save to another file
3.binmode command sets up a file for access in binary mode with no mapping of carriage returns.
4.Win32 Binary Files