13.3 Making and Removing Directories
You probably couldn't have made it this far without knowing about the
mkdir
or
md
command, which makes directories that hold other filenames and other directories. Perl's equivalent is the mkdir("gravelpit",0777) || die "cannot mkdir gravelpit: $!"; The command-prompt rmdir command removes empty directories - you'll find a Perl equivalent with the same name ( rmdir ). Here's how to make Fred unemployed: rmdir("gravelpit") || die "cannot rmdir gravelpit: $!"; |
|