in reply to Re: Sort path strings by component count.
in thread Sort path strings by component count.

perl's m// doesn't give you a count of matches
Perl Idioms Explained - my $count = () = /.../g

Caution: Contents may have been coded under pressure.
  • Comment on Re^2: Sort path strings by component count.