I\'m trying to traverse through all the subdirectories of the current directory in Perl, and get data from those files. I\'m using grep to get a list of all files and folder
my @files = grep { -f } @all; my @dirs = grep { -d } @all;