A
Ant
Hi
Has anyone encountered an issue with using the Perl IsDirectory -d?
For example, the following snippet of code should yield 3 invalid
directory responses.
my $folderExists = -d "C:Foo";
my $folderExists2 = -d "C:\\Foo";
my $folderExists3 = -d "";
None of the above folders/directories exist (using XP Pro) yet the
result of $folderExists is 1.
The others yield undefined values which is/should be correct.
Has anyone encountered this or is C:Foo being interpreted as something
else (my only assumption - like C: on its own).
Ant
Has anyone encountered an issue with using the Perl IsDirectory -d?
For example, the following snippet of code should yield 3 invalid
directory responses.
my $folderExists = -d "C:Foo";
my $folderExists2 = -d "C:\\Foo";
my $folderExists3 = -d "";
None of the above folders/directories exist (using XP Pro) yet the
result of $folderExists is 1.
The others yield undefined values which is/should be correct.
Has anyone encountered this or is C:Foo being interpreted as something
else (my only assumption - like C: on its own).
Ant