Wise Elders,
I am but a serf on the monastery.. Wine pressing available by request.
When I read a directory contents into an array, and test the elements to find directories, it does not return directory values unless the path I am reading from is the local (.)
directory. WhatUp with that? If I remove the test, the correct contents are returned, the test just seems to fail.
#!/usr/bin/perl
$path=".";
opendir (DIR, $path) or die "could not open directory";
@files = readdir(DIR);
foreach (@files) {
print "$_ \n" if (-d $_) ;
}
updated by boo_radley :title change