greetings everyone,

i've got a solution that requires me to create directories when a record is added to a 
database (in this case i'm using Lasso WDE on a WebTen webserver, which is a port of 
apache to mac.  full perl 5 capability).  problem is i've only had the last 3 days to 
learn anything at all about Perl, and i need something by tomorrow AM.

here is my code:

1   #!/usr/bin/perl
2
3   use CGI use_named_parameters,a;
4
5
6   # Grab information from form
7
8   $query = new CGI;
9   $ProjectNumber      =       $query->param("ProjectNumber");
10
11  $makeDirectoryDocs = "../WebSites/mch.nvisionusa.net/docs";
12  $makeDirectoryImages = "../WebSites/mch.nvisionusa.net/docs";
13
14  MKDIR ($makeDirectoryDocs$ProjectNumber);
15
16  MKDIR ($makeDirectoryImages$ProjectNumber);
17
18  print <<EOF; #Print start of pop-up window
19
20  <html>
21  <head><title>Processing</title></head>
22  <body bgcolor="#ffffff" 
onLoad="document.location.href='categories.mch?ProjectNumber$ProjectNumber';">
23  </body>
24  </html>
25
26
27
28  EOF

the error i get currently is:

Scalar found where operator expected at /usr/local/etc/httpd/cgi-bin/psr_mkdir.cgi 
line 14, at end of line
        (Missing operator before ?)
syntax error at /usr/local/etc/httpd/cgi-bin/psr_mkdir.cgi line 14, near 
"$makeDirectoryDocs$ProjectNumber"
Scalar found where operator expected at /usr/local/etc/httpd/cgi-bin/psr_mkdir.cgi 
line 16, at end of line
        (Missing operator before ?)
syntax error at /usr/local/etc/httpd/cgi-bin/psr_mkdir.cgi line 16, near 
"$makeDirectoryImages$ProjectNumber"
Execution of /usr/local/etc/httpd/cgi-bin/psr_mkdir.cgi aborted due to compilation 
errors.
[Tue Feb 27 16:16:15 2001] access to /usr/local/etc/httpd/cgi-bin/psr_mkdir.cgi failed 
for 208.131.27.12, reason: Premature end of script headers

if someone can give me some insight on this that would be frikkin awesome!  i'm sure 
it's something stupid that my newbie skills can't figure out (perl in a nutshell isn't 
as easy to absorb as i thought!), so school me please!

thanks and hello,
chris
-- 
---------------------------------------
c h r i s t o p h e r . a . j e n s e n
---------------------------------------
n Vision/usa inc.
w: http://www.nvisionusa.com
e: [EMAIL PROTECTED]
p: 6164566566
f: 6164566599


Reply via email to