I am redirecting this question to the beginners-cgi list. Please respond to the
original poster ([EMAIL PROTECTED]) and the beginners-cgi list, not
the beginners list. Thank
you.
Cheers,
Kevin
On Tue, Jun 12, 2001 at 04:23:47PM -0600, T&R Customer Service
([EMAIL PROTECTED]) spew-ed forth:
>
> ----- Original Message -----
> From: Richard and Bonnie Taft
> To: Sent: Tuesday, June 12, 2001 10:18 AM
> Subject: Whats my problem, among other things?
>
>
> TO all you perl faithful who are in the know:
> I am trying to test my perl scripts on a win98 machine running PWS. I have all
>downloaded and installed Activeperl and it works good, but it's not installed in the
>pws path. Is this a problem? When I try to run my scripts from using:
>
> http://localhost/env_list.cgi
>
> I get:
>
> #!c:\perl\bin\perl.exe print "Content-type: text/html\n\n"; print ""; foreach
>$env_var (keys %ENV) { print "
> $env.var is set to $ENV{$env_var}"; } print "";
>
> instead of an html formatted list,which the script provides for. Also, when I run
>the script from the command promt, it runs just fine, except that it doesn't send the
>output to my ie browser, which sucks. I just want to know how to get my browser to
>display the script output properly.
>
> Here's the script. Any help would be appriciated.
>
> #!c:\perl\bin\perl.exe
>
>
> print "Content-type: text/html\n\n";
> print "<HTML><HEAD><TITLE>Environment Variables available to Bonnie's
>Computer</TITLE></HEAD><BODY>";
> foreach $env_var (keys %ENV) {
> print "<BR><FONT COLOR=red>
> $env.var</FONT> is set to <FONT COLOR=blue>$ENV{$env_var}</FONT>";
> }
> print "</BODY></HTML>";
>
> Thanks,
> Nathan
> pulling up my flame-retardant shorts.
--
[Writing CGI Applications with Perl - http://perlcgi-book.com]
Nuclear explosions under the Nevada desert? What the f*ck are we testing for?
We already know the sh*t blows up.
-- Frank Zappa