Creating New Directories with Perl
Hi,
Does anyone know who do create a new directory from a perl script. I just can't seem to get this right.
Thanx
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 posted this at 05:37 — 22nd May 2001.
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.
Gr8One posted this at 05:34 — 23rd May 2001.
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.