Help for this page

Select Code to Download


  1. or download this
    #!/usr/local/bin/perl
    
    ...
    print <FILE>;
    
    # closing both FILE and STDOUT is automatic at end-of-script
    
  2. or download this
    $/ = \16384;  # 16 KB/read 
    
    ...
    }
    
    # It's not a problem if the last "record" read from FILE is <16 KB.