in reply to mkdir on NT

Well all three of your versions work fine on this NT box. If you want a clue, perhaps it's time to add an error check and find out just what is going on in your case? mkdir $diss,777 or die "Can't mkdir: $!";

Update: Yes that should be 0777 (an octal number) rather than 777. It happens that 0777 is also the default mask so it could actually be left out in this case.

--
I'd like to be able to assign to an luser

Replies are listed 'Best First'.
Re: Re: mkdir on NT
by fmogavero (Monk) on Mar 28, 2001 at 03:01 UTC
    Thank you for the suggestion. I had not included the  $! at the end of my  die message.

    The two error codes that I receive when it fails are "file exists", which tells me that it will not try to go any further because it found the directory.

    The other message is just the opposite. "No such file or directory at file.pl line 2."

    if !($dir){ mkdir $dir,777 or die "Cant mkdir: $!"; }
    Does not explain the second message which occurs only when I use a scalar.
      Methinks you mean   mkdir $dir, 0777 or ... rather than   mkdir $dir, 777 or... The leading '0' is significant (less so on Win32, more so on *nix).