http://www.perlmonks.org?node_id=741200


in reply to Re: using File::Find for reading files in order
in thread using File::Find for reading files in order

Either that, or if there are many files that will be skipped by the regexp, sort the results just before returning them.

return sort {$a <=> $b} @messages;

• another intruder with the mooring in the heart of the Perl