In addition, I would suggest changing [ $_, [stat]->[10], [stat]->[9] ] to [$_, (stat)[10,9]], as it a) saves a call to stat(), and b) uses a list slice rather than two anonymous array refs.
Jeff japhy Pinyan,
P.L., P.M., P.O.D, X.S.:
Perl,
regex,
and perlhacker How can we ever be the sold short or the cheated, we who for every service have long ago been overpaid? ~~ Meister Eckhart