Jun
21

Create Dir Path

By celso

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.

Categories : Perl

Leave a Comment

You must be logged in to post a comment.