Help for this page

Select Code to Download


  1. or download this
    use File::Copy;
    open(RFH, "<ReadFile.h") or die "Trying:$!";
    ...
    close WFH;
    
    move ("WriteFile.h", "ReadFile.h") or die "With a vengance:$!";
    
  2. or download this
    $^I = '.old';
    @ARGV = ("header.h");
    ...
       s/search/replace/;
       print;
    }