in reply to Sort files

No, it shouldn't. Two things pop out. First, you're doing [stat]->[9] again, which as I told you last time is needlessly complex. Use (stat)[9] instead. Second, your sort block refers to $a->[2] and $b->[2] which are undef. They don't exist. Your $a and $b are array refs with only two elements in them ($a->[0] and $a->[1]).

Jeff japhy Pinyan, P.L., P.M., P.O.D, X.S.: Perl, regex, and perl hacker
How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart