Help for this page
my @files = glob( "/var/log/messages*" ); ... my @sortedfiles = sort { ( stat($b) )[9] <=> ( stat($a) )[9] } @files;