Hi,

I would say this is a newbie question, but since this post is to the
perl.beginners list I guess you can assume that it is.

I want to create a hieracrchical "nested" directory structure on the remote
Unix server that I use as my host.

I can only create single directory which appears under the cgi-bin directory
on the server that my perl script runs in but I want to create a nested
structure that starts one level up from the cgi-bin.

For example if my cgi-bin directory is usr\home\myaccount\cgi-bin I can
create a new directory under cgi bin as  usr\home\myaccount\cgi-bin\NEWDIR
using the following code in the Perl script that runs in the cgi-bin
directory:

$fileDir = 'NEWDIR';
mkdir($fileDir,'777');

...but I want to create:

usr\home\myaccount\NEWDIR_1\NEWDIR_2\NEWDIR_3 etc etc.

Can someone give me an example of how to do this.

Many thanks,

Mark.



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to