So I want to do this:
while (<FILE>) { ... do something with $_ ... }
...but rather than process the first line first, I want to process the last line first, and then process the second last line, and then the third last line, all the way to the first line.
Any ideas about how to do this elegantly and efficiently?
In reply to Processing text file in reverse-order linewise by tomazos
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |