-x file tests not working
by Jeremy A other posts by this author
Jul 31 2004 2:52AM messages near this date
view in the new Beta List Site
Re: Compiling C code from B::C
|
Re: -x file tests not working
hi all
I cannot do a test on a file to see if it is a directory or not. It seems
to recognize a directory/folder as a file. the only directories it detects
are "." and ".." links.
I am running Perl v5.8.4, build 810 on win2000 Pro svc pack 4
opendir(BACKP,"Records");
my @m = readdir(BACKP);
foreach my $f (@m)
{
if (-d $f)
{
print "<<$f\n";
}else
{
print "?$f\n";
}
}
closedir(BACKP);
thanks in advance for any help.
Regards,
Jeremy A.
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Thread:
Jeremy A
$Bill Luebkert
|