@sorted_large_files = sort { -s "$_/$b" <=> -s "$_/$a" } @large_files;