in reply to Sort path strings by component count.
@paths = sort { $b =~ y/\\// <=> $a =~ y/\\// } @paths; [download]