Note that if you want to use less memory, you could split the file into chunks, reverse the chunks and then reverse-concatenate the chunks.my @input = <STDIN>; my $i = $#input; while ($i >= 0) { print $input[$i--]; }
In reply to Re: Reversing A File
by Joost
in thread Reversing A File
by camelcom
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |