Hmmm...

The assignment of $ENV{SCRIPT_NAME} to $cgi *shouldn't* require that you set
up anything in the preferences.  The script name is set up in the
environment automatically by Perl when the script is launched, although your
configuration of it doensn't seem like it should break anything.

The broken link to logo.gif that you refer to is pretty common.  I don't
recall exactly where it needs to be stored, but it seems like you can edit
base.html to correct the reference and you'll be fine.  It's definitely NOT
related to the problem you're having with the cgi name.

For grins, try writing a little Perl program that only displays the script
name property:

     print "$ENV{SCRIPT_NAME}\n";

which should tell you if MacPerl is properly setting that environment
variable up when it launches the script.

Do you know what version of Perl your MacPerl is based on?  It's also
possible that the SCRIPT_NAME environment variable was introduced in a later
version of Perl...I'm no Perl guru, so I couldn't comment on when it
appeared...

(FWIW, I'm no Mac guru, either, but I've slogged through some similar
problems in getting the scripts to run on Windows NT)

Regards,
Eric Longman
Atl-Connect Internet Services

+-------------------------------------------------------+
| Atl-Connect Internet Services   http://www.atlcon.net |
| 3600 Dallas Hwy Ste 230-288              770 590-0888 |
| Marietta, GA 30064-1685            [EMAIL PROTECTED] |
+-------------------------------------------------------+
----- Original Message -----
From: "mr. m" <[EMAIL PROTECTED]>
To: "WebWiz" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, August 06, 2000 9:03 PM
Subject: Re: Macperl Solution


Thanks for the tip! Hopefully this thread will continue to evolve to
a working installation and other MacPerl users will benefit!

Changing the main_menu.html form action line back to its original...
{{cgi}} revealed the following:
a) I found this line in the reg_system.cgi file ...
my $cgi = $ENV{SCRIPT_NAME};

and determined that the variable "SCRIPT_NAME" needed to be defined
in my Macperl preferences... so I went into Macperl, selected the
preferences under the Edit menu, then selected "Environment" within
the dialog window that popped up and created a new variable
"SCRIPT_NAME" and selected my acgi file and entered
http://www.mydomainname.com/cgi-bin/reg_system.acgi

Now, I expected to see this url appear in place of {{cgi}} when the
main_menu.html page was displayed.

What I see is: <Form action="" method="Post">

Unfortunatly the variable is not being inserted as it should be. Any
ideas?

My first thought was that the cgi wasn't working at all. However,
the cgi IS displaying the main_menu.html with a broken Logo.gif.
This, I think, is important because this tag is not part of the
original main_menu.html source code and could only come from the cgi
script.

Also, a new phenomenon! before I would get a "insufficient data
error" (see previous message) Now, I just get the main_menu.html
document reloaded and each time I submit a possible domain I get the
same main_menu.html page reloaded...

-Thanks in advance
-Wes


Reply via email to