| Prev | Perl Notes |
Next |
You can use a script to creat a new directory that will accomodate new files.
To create a directory:
if (-e "../tmp/archives") {
print "The archives directory does exist.";
} else {
print "The archives directory does NOT exist.";
mkdir ("../tmp/archives"), 0777) || @ErrorMessage;
print "The archives directory has been created.";
}
|
Tips
| Prev | Home | Next |