| Prev | Perl Notes |
Next |
Wether a file or directory can be accessed - by you, your script, or your visitors - depends on the directory's permissions. You can change a directory's permissions either from the prompt or from within your script, as described here.
To remove a directory:
if (-e "../tmp/tempdir") {
rmdir("../tmp/tempdir") || @ErrorMessage;
print "The directory has been removed.";
}
|
Tips
| Prev | Home | Next |