Help for this page

Select Code to Download


  1. or download this
    open(INFILE, "file.htm");
    flock(INFILE, 1);
    ...
    flock(OUTFILE, 2);
    print OUTFILE "stuff";
    close(OUTFILE);
    
  2. or download this
    open(OUTFILE, ">$file.htm");
    flock(OUTFILE, 2);
    @lines=<OUTFILE>;
    print OUTFILE "stuff";
    close(OUTFILE);