loosecannon1
Programmer
I'm trying to access files on a remote server and the opendir function is is failing. I'm certain the dir path is correct. Following is my code. Any ideas???????
$Dir = "
opendir(DIR,$Dir) || die "Can't open $Dir";
@fileNames = readdir(DIR);
closedir (DIR);
for (@fileNames) {
next if $_ eq '.';
next if $_ eq '..';
next if $_ eq '...';
print "$_\n";
}
$Dir = "
opendir(DIR,$Dir) || die "Can't open $Dir";
@fileNames = readdir(DIR);
closedir (DIR);
for (@fileNames) {
next if $_ eq '.';
next if $_ eq '..';
next if $_ eq '...';
print "$_\n";
}