Creating New Directories with Perl

They have: 10 posts

Joined: May 2001

Hi,

Does anyone know who do create a new directory from a perl script. I just can't seem to get this right.

Thanx

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

mkdir()

But be sure to chdir() first to get to the directory that you want to make a subdirectory in.

They have: 10 posts

Joined: May 2001

Thanks for the Help Mark, the mkdir command works very well. I just had one more problem. I am trying to open a directory with an {'QUERY_STRING'} variable in the path and i'am trying to create a new directory within that path. For some reason it only creates the directory in the path one level below that of where the {'QUERY_STRING'} variable is. Any suggestions on what is happenning?

Gr8One

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.