Hi all,
I am trying to make an array of folders and want to basically take all files inside the folder. However, I got an error saying "missing a $ loop variable". I have add a $, and worked around with this codes, but still did not work .. Is it possible to get all files inside an array of folder?
my $folder="1";
my $folder2="2";
my @fld = ($folder, $folder2);
for each (@fld)
{
opendir(FOLD, @fld);
my @FD = readdir(FOLD);
// I want to read all values inside each directories and display it. how to achieve this?
}
Thank you for the guidance