Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
what's a better way to write this so that every time I run the script it isn't trying to create a directory that's already there..... I have this code in a subroutine. I was thinking maybe a if (-e ....... help?mkdir "$directory/$month/$day", 0755;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Avoiding making a directory that already exists
by VSarkiss (Monsignor) on Aug 19, 2001 at 22:07 UTC | |
by Anonymous Monk on Aug 19, 2001 at 22:38 UTC | |
|
Re: Avoiding making a directory that already exists
by Rudif (Hermit) on Aug 19, 2001 at 23:38 UTC | |
|
Re: Avoiding making a directory that already exists
by scain (Curate) on Aug 19, 2001 at 22:05 UTC | |
by tilly (Archbishop) on Aug 19, 2001 at 22:21 UTC |