Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi, I am trying to create a directory "work\\startup" if it doesnt exist using the following code,it fails to create the directory?Appreciate any inputs?
my $cmdls = system("ls work\\startup"); if ($cmdls != 0) { print "create work\\startup directory\n"; my $cmdmkdir = system("mkdir work\\startup"); if ($cmdmkdir != 0) { print("create work\\startup directory failed\n"); exit 1; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Failed to create work\\startup directory
by toolic (Bishop) on Apr 24, 2011 at 23:04 UTC | |
|
Re: Failed to create work\\startup directory
by jwkrahn (Abbot) on Apr 24, 2011 at 23:05 UTC | |
by Anonymous Monk on Apr 24, 2011 at 23:21 UTC | |
|
Re: Failed to create work\\startup directory
by wind (Priest) on Apr 24, 2011 at 23:43 UTC | |
by Anonymous Monk on Apr 24, 2011 at 23:51 UTC | |
by wind (Priest) on Apr 24, 2011 at 23:56 UTC |