develooper Front page | perl.beginners | Postings from January 2002

dir check (NT4 vs. Win2k)

January 9, 2002 16:42
dir check (NT4 vs. Win2k)
Message ID:
Hi, I was hoping someone might be able to tell me why a dir 
check is failing on Win2k and not on NT4...

I have the following code:
$StartingDir = $ENV{"TMP"};
( -d $StartingDir ) or die "TMP variable $StartingDir is 
not actually a valid directory\n" ;
$StartingTempDir = $StartingDir . $Slash . "foo";
  ( -d $StartingTempDir ) or mkdir $StartingTempDir, 0711;
( -d $StartingTempDir ) or return "0";

When run under NT4 there's no problem. When run on Win2k 
the final directory check fails returning 0. What gives?

Perl Version is 5.001 Build 110

Any thoughts are appreciated.

/Mark Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About