Create Dir Path

To create a directory path programatically:


use File::Path;

mkpath "/usr/local/apache/htdocs/articles/2003";

This will create the 2003 directory and all parent directories as needed. This is the same as mkdir -p command.

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.