M
mihirtr
Hi,
I am using perl's find command to find list of files, sub-directories.
I have storred it in local array. Following how it looks.
find (sub{push @dirList, $File::Find::name},$localdir);
where $localdir is directory from where I want to find list of files,
diretories.
@dirList is array which contains this list.
I want to perform specific function if the element in @dirList is a
file and perform some other function if element is a directory. Is
there a way to distinguish between file and directory in this list?
Thanks.
I am using perl's find command to find list of files, sub-directories.
I have storred it in local array. Following how it looks.
find (sub{push @dirList, $File::Find::name},$localdir);
where $localdir is directory from where I want to find list of files,
diretories.
@dirList is array which contains this list.
I want to perform specific function if the element in @dirList is a
file and perform some other function if element is a directory. Is
there a way to distinguish between file and directory in this list?
Thanks.