Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Tomcat Can't see %ENV

Status
Not open for further replies.

ccary

Programmer
Jul 6, 2003
2
US
I've written a few basic perl scripts for my server. When I run them from the command line, they work fine. Also, if I run them online, they also work fine, unless I'm trying to do something with %ENV, in which case, my browser just keeps trying to access the page, but never goes anywhere. (It doesn't even time out)

Does anyone have any idea why this might be happening?

I'm running WinXP Pro SP1
Tomcat 4.0.6
ActivePerl 5.8

Thanks
 
Addendum

By "use %ENV" I mean, one of my scripts that works looks like this

#!C:\Perl\bin\perl.exe

print
"Content-type: text/plain\n\n";

print "Heya.";




one that does NOT work, looks like this

#!C:\Perl\bin\perl.exe

print
"Content-type: text/plain\n\n";

print %ENV;


Despite the fact that both work correctly when I run them from the command line on my computer.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top