http://qs1969.pair.com?node_id=157761

chrisbarton has asked for the wisdom of the Perl Monks concerning the following question:

I know this is pretty simple but I have just spent an hour searching and cannot find the answer:

how do I create a folder in perl?

Replies are listed 'Best First'.
Re: creating a folder
by earthboundmisfit (Chaplain) on Apr 09, 2002 at 16:23 UTC
    mkdir is your friend....

    update: It will work across platforms.

Re: creating a folder
by derby (Abbot) on Apr 09, 2002 at 16:23 UTC
    folder in Win32 or Mac? Unless I'm missing something, check out mkdir.

    -derby

Re: creating a folder
by perlplexer (Hermit) on Apr 09, 2002 at 17:45 UTC
    File::Path if you need to create/remove directory trees.

    --perlplexer
Re: creating a folder
by DigitalKitty (Parson) on Apr 10, 2002 at 04:05 UTC
    Hi Chris,

    You could do this:
    $mkdir perlStuff, 0755 or warn "Could not create the perlStuff directo +ry: $!";

    Thanks,
    -DK