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