I don't have much experience (in fact, nearly none!) with CGI scripts;
you should however remember that, on NT class machines, there are 2
(TWO) sets of environment variables: SYSTEM and USER. So, what may be
the diference is that somehow the two local profiles for the account you
run the CGI scripts may have diferent environment variables on the two
machines.

HTH,
  Fernando Madruga


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
Mike Kalinovich
Sent: quarta-feira, 24 de Julho de 2002 19:47
To: [EMAIL PROTECTED]
Subject: RE: Regexp needed


Hello all,

I'm at a bit of a loss as to why the same script on two servers are
experiencing a difference in opinion.

Both are NT4 with all the latest and greatest patches from MS. Both are
running SP6a Both are running ActiveState v5.2.2

The CGI script is from tools4webmasters.com
This is an excerpt:

foreach $key (keys (%ENV)) {
    if ($key eq 'DOCUMENT_ROOT') {
        print
"<tr><td>$key$space=<br></td><td>$ENV{$key}<br></td><td>Your
base directory (the \"/home/yourname\" part)<br></td></tr>\n";
    }
    else {
        print
"<tr><td>$key$space=<br></td><td>$ENV{$key}<br></td></tr>\n";
    }
}

The script goes through all the Environment keys and reports them back.
Except for the key of:  Perl5.00503 =

On one server it is blank, on the other it reports
 perl: C:\Perl\bin\perl.EXE

I am at a loss as to where this is coming from.  If someone could share
this information with me.  The system environment variables do not
contain this on either server.

Any help would be much appreciated,
Mike Kalinovich

_______________________________________________
Perl-Win32-Users mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to