in reply to Re: mkdir on NT
in thread mkdir on NT

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.

Replies are listed 'Best First'.
Re: Re: Re: mkdir on NT
by dws (Chancellor) on Mar 28, 2001 at 04:02 UTC
    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).