Help for this page

Select Code to Download


  1. or download this
    # Read a text file and print it out
    while (<$filename>) {
       print;
    }
    
  2. or download this
    # Copy a binary file to somewhere safe
    open (OUTFILE,">>/usr/local/web/users/feedback");
    while ($bytesread=read($filename,$buffer,1024)) {
       print OUTFILE $buffer;
    }