Help for this page

Select Code to Download


  1. or download this
    system("tail -10 inputFile.txt >> outputFile.txt");
    
    open <FILE, "</path/to/outputFile.txt"> or die "can't open file: $!\n"
    +;
       #do whatever here
    close FILE or die "can't close file $!\n";
    
  2. or download this
    @input = <FILE>;
    $i = 0;
    ...
       } 
    }
    close FILE or die "can't close file: $!\n";