Name

mkpath

Synopsis

mkpath (path, bool, perm)

Creates a directory path and returns a list of all directories created. Takes the following arguments:

path

Name of the path or reference to a list of paths to create.

bool

Boolean. If true, mkpath prints the name of each directory as it is created. Default is false.

perm

Numeric mode indicating the permissions to use when creating the directories. Default is 0777.

Get Perl in a Nutshell, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.