readdir/File::Find::Rule is not reading a subdirectory and its contents in perl
Clash Royale CLAN TAG #URR8PPP readdir/File::Find::Rule is not reading a subdirectory and its contents in perl I have tried 3 different ways to read contents of a folder and none of them are able to identify a subdirectory in a setup. Strange part is, when i recreate the folder structure locally , the sub-directory is identified and i get the file i am looking for with all the 3 solutions. This sub directory is created on the fly along with other files in the folder in the setup. Every time i am able to read all the files which are created but not the sub directory and its contents. I tried below solutions. Solution 1: use File::Find::Rule; my $dir = '.'; my @subdirs = File::Find::Rule->directory->in($dir); foreach (@subdirs) { print "Dir --> $_ n"; } my @list = ("*.txt", "*.rex"); my @files = File::Find::Rule->file()->name(@list)->in(@subdirs); foreach (@files) { print "File --> $_ n"; } --> It does not list t...