I am getting the following error when try to execute the following code-
# c:\Folders\1Folder\1aFolder
my $directory = "\\Folders\\1Folder\\1aFolder";
print "Folder: ", $directory, "\n";
opendir (DIR, $directory) or die $!;
while (my $fldr = readdir(DIR))
{
print "Files & Folders: ", $fldr, "\n";
}
Error-
Folder: \Folders\1Folder\1aFolder
Invalid argument at c:\temp\dir1A9A.tmp\read.pl line ...##.
Press any key to continue . . .
Pointing to line - opendir (DIR, $directory) or die $!;
Please let me know