I have an array of files, and I would like to tell if members of this array are directories or not, and if they are, open them and do something with the contents.
I tried doing it this way:
foreach $n(@array)
{
if (opendir DIRHANDLE, $n)
{
do something with DIRHANDLE;
}
}