Scott Miller wrote:
> Hi List,
>
> I am new to using Perl. I have am using apache server on a windows2000
> machine. This is a test machine. The live scripts will be on a unix box.
>
> I want users to fill in a form to create a directory on the web server. I
> have read the documentation of mkdir. I do not understand what the argument
> should be.
>
> For example on my machine the web pages are in the C:\apache\htdocs\
> directory. I want these new directories created under htdocs. What is the
> format of the path is it C:\apache\...... or is it 127.0.0.1\, or something
> else? Also since the directory to be created is a variable how do I write
> the path to include the variable or combine to string variables to get a
> variable that represents the path.
my $root = 'C:/apache/htdocs';
my $dir = "$root/$username';
# or
my $dir = $root . '/' . $username;
--
,-/- __ _ _ $Bill Luebkert ICQ=14439852
(_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED]
/ ) /--< o // // http://dbecoll.tripod.com/ (Free site for Perl)
-/-' /___/_<_</_</_ Castle of Medieval Myth & Magic http://www.todbe.com/
_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs