On Sunday, June 9, 2002, at 06:53 , Mark Underwood wrote:
[..]
> 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.
what you are looking for is
perldoc File::Path
and in particular the
mkpath
function. An illustration of it's use is shown in:
http://www.wetware.com/drieux/pbl/misc/linkToNowhere.txt
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]