$/ = "\n"; open(REVERSE_FILE, "|/usr/bin/tac $filename"); while (<REVERSE_FILE>) { print "$_\n"; } close REVERSE_FILE;
In reply to Re: How do I read a file line by line in reverse order (from EOF to start of file)
by swngnmonk
in thread How do I read a file line by line in reverse order (from EOF to start of file)
by elanajk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |