Help for this page

Select Code to Download


  1. or download this
        print "Content-Type: application/octet-stream\n\n";
    
  2. or download this
    print "Content-Type: text/plain\n";
    print "Content-Length: $filesize\n";
    ...
    open FILE, $filename or die "can't open $filename: $!\n";
    print while <FILE>;
    close FILE;
    
  3. or download this
    use CGI::Simple;
    use strict;
    ...
    
    open FILE, $filename or die "Can't open $filename: $!\n";
    print while <FILE>;