Help for this page

Select Code to Download


  1. or download this
    open(FILE, "<myfile.txt");
    @file = reverse <FILE>;
    foreach (@file) {
        #process line
    }
    
  2. or download this
    
    #!/usr/bin/perl
    ...
    
    close FILE;