in reply to Read File in reverse
This will process the file from the last line to the first line.open(FILE, "<myfile.txt"); @file = reverse <FILE>; foreach (@file) { #process line }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Read File in reverse
by CountZero (Bishop) on Jun 05, 2004 at 08:27 UTC |