in reply to
Counting files in a folder
Perhaps it would be simpler to work with your array if it were a different structure:
directory listing to array tree
File::Slurp::Tree
Tree::Builder
Comment on
Re: Counting files in a folder
In Section
Seekers of Perl Wisdom