something like
for my $file (reverse @ARGV) { read_backward_and_print($file); }
Why do you need 2 arguments? I'd guess you might want to reverse a single file too...
I'd write your check as:
die "Usage: $0 FILENAMES\n" unless @ARGV >= 2;
Also, I was under the impression that tac was supposed to print the lines in the files in reverse order, NOT to also print the reverse of each line...
In reply to Re: Grade me! TAC
by Joost
in thread Grade me! TAC
by Frank_Zappa_lives
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |