Help for this page

Select Code to Download


  1. or download this
    open FILE_LIST, "list.txt";
    while(<FILE_LIST>) {
     #read each line into the array here -- gotta look up the syntax
    }
    close FILE_LIST;
    
  2. or download this
    foreach $filename (@files2change) {
     my $backup = $filename . '.bak';
    ...
     close OLD_FILE;
     close NEW_FILE;
    }