Perl reverse array FAQ: How do I reverse the contents of an array in Perl? (or, How do I use the Perl reverse function?)
It turns out that it's easy to reverse a Perl array, especially if you have already defined the sorting/comparing algorithm that Perl needs to sort the array.
A Perl reverse array example
For example, if you just want to reverse the lines in a Perl array that you've read from a text file, you can just use this Perl script: