I would get the entries into an array. You didn't mention where the entries are stored, but I'll assume it is in a file. Assuming the newer entries are at the bottom of the file.
Code:
open(FILE, "$file") or "Can't open $file: $!\n";
@BottomToTop = (<FILE>);
close(FILE);
@TopToBottom = reverse(@BottomToTop);
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.