Advertisement

02.14.2008 at 06:53PM PST, ID: 23165039
[x]
Attachment Details

How do I use a Perl script to display browser environment variables?

Asked by CharleneS77 in Perl Programming Language, CGI Scripting

Tags: Perl, Internet Explorer 7

I am attempting to create a Perl script that displays my browser environment variables.  I am able to display some environment variables, but they are not my browser environment variables.  What do I need to change here to display the browser environment variables?Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
#!/usr/bin/perl
print "Content-type:text/html\n\n";
print <<EndOfHTML;
<html>
  <head>
    <title>Print Environment
    </title>
  </head>
  <body>
  EndOfHTML
 
  foreach $key (sort(keys %ENV)) 
  {
      print "$key = $ENV{$key}<br>\n";
  }
 
  print "
  </body>
</html>";
[+][-]02.14.2008 at 07:07PM PST, ID: 20899100

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.14.2008 at 07:55PM PST, ID: 20899272

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.14.2008 at 08:17PM PST, ID: 20899339

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.14.2008 at 08:46PM PST, ID: 20899447

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Perl Programming Language, CGI Scripting
Tags: Perl, Internet Explorer 7
Sign Up Now!
Solution Provided By: FishMonger
Participating Experts: 4
Solution Grade: A
 
 
[+][-]02.14.2008 at 10:12PM PST, ID: 20899727

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.15.2008 at 07:14AM PST, ID: 20902411

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]02.17.2008 at 03:34AM PST, ID: 20913722

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]02.19.2008 at 07:25PM PST, ID: 20934784

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]02.19.2008 at 07:27PM PST, ID: 20934792

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628